Skip to content

Commit 96aefde

Browse files
committed
🐛 fix merge mistakes
1 parent 2205e13 commit 96aefde

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

core/llm/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,6 @@ export abstract class BaseLLM implements ILLM {
6666
return ["ollama", "anthropic"].includes(this.providerName);
6767
}
6868

69-
supportsCompletions(): boolean {
70-
if (this.providerName === "openai") {
71-
if (
72-
this.apiBase?.includes("api.groq.com") ||
73-
this.apiBase?.includes(":1337")
74-
) {
75-
// Jan + Groq don't support completions : (
76-
return false;
77-
}
78-
}
79-
return true;
80-
}
81-
82-
supportsPrefill(): boolean {
83-
return ["ollama", "anthropic"].includes(this.providerName);
84-
}
85-
8669
uniqueId: string;
8770
model: string;
8871

core/llm/llms/OpenAI.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ class OpenAI extends BaseLLM {
4545
this.useLegacyCompletionsEndpoint = options.useLegacyCompletionsEndpoint;
4646
}
4747

48-
constructor(options: LLMOptions) {
49-
super(options);
50-
this.useLegacyCompletionsEndpoint =
51-
options.useLegacyCompletionsEndpoint ?? false;
52-
}
53-
5448
static providerName: ModelProvider = "openai";
5549
static defaultOptions: Partial<LLMOptions> = {
5650
apiBase: "https://api.openai.com/v1/",

0 commit comments

Comments
 (0)