🐛 fix merge mistakes

This commit is contained in:
Nate Sesti 2024-04-22 21:54:03 -07:00
parent 2205e134db
commit 96aefde2ed
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/",