Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieFRuan committed Aug 12, 2024
1 parent ef27ebc commit a75650a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/openai_api_protocols/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export const CompletionCreateParamsUnsupportedFields: Array<string> = [
*/
export function postInitAndCheckFields(
request: CompletionCreateParams,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
currentModelId: string,
): void {
// 1. Check unsupported fields in request
Expand Down
3 changes: 2 additions & 1 deletion src/openai_api_protocols/embedding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface CreateEmbeddingResponse {
usage: CreateEmbeddingResponse.Usage;
}

/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable-next-line @typescript-eslint/no-namespace */
export namespace CreateEmbeddingResponse {
/**
* The usage information for the request.
Expand Down Expand Up @@ -156,6 +156,7 @@ export const EmbeddingCreateParamsUnsupportedFields: Array<string> = [

export function postInitAndCheckFields(
request: EmbeddingCreateParams,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
currentModelId: string,
): void {
// 1. Check unsupported fields in request
Expand Down
2 changes: 0 additions & 2 deletions tests/function_calling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ describe("Test gorilla MLCEngine", () => {
});

test("Test getFunctionCallUsage auto", () => {
const engine = new MLCEngine();

const request: ChatCompletionRequest = {
model: "gorilla-openfunctions-v1-q4f16_1_MLC",
messages: [
Expand Down
1 change: 0 additions & 1 deletion tests/multi_round_chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ChatCompletionRequest,
ChatCompletionUserMessageParam,
} from "../src/openai_api_protocols/chat_completion";
import { MLCEngine } from "../src/engine";
import {
Conversation,
compareConversationObject,
Expand Down

0 comments on commit a75650a

Please sign in to comment.