🐛 fix merge mistake

This commit is contained in:
Nate Sesti 2024-04-23 09:27:09 -07:00
parent 56e13c5a98
commit db56d02ac1
2 changed files with 0 additions and 23 deletions

View file

@ -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;

View file

@ -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/",