Skip to content

Commit

Permalink
🐛 fix merge mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Apr 23, 2024
1 parent 2205e13 commit 96aefde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
17 changes: 0 additions & 17 deletions core/llm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,6 @@ export abstract class BaseLLM implements ILLM {
return ["ollama", "anthropic"].includes(this.providerName);
}

supportsCompletions(): boolean {
if (this.providerName === "openai") {
if (
this.apiBase?.includes("api.groq.com") ||
this.apiBase?.includes(":1337")
) {
// Jan + Groq don't support completions : (
return false;
}
}
return true;
}

supportsPrefill(): boolean {
return ["ollama", "anthropic"].includes(this.providerName);
}

uniqueId: string;
model: string;

Expand Down
6 changes: 0 additions & 6 deletions core/llm/llms/OpenAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ class OpenAI extends BaseLLM {
this.useLegacyCompletionsEndpoint = options.useLegacyCompletionsEndpoint;
}

constructor(options: LLMOptions) {
super(options);
this.useLegacyCompletionsEndpoint =
options.useLegacyCompletionsEndpoint ?? false;
}

static providerName: ModelProvider = "openai";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.openai.com/v1/",
Expand Down

0 comments on commit 96aefde

Please sign in to comment.