🐛 fix merge mistakes
This commit is contained in:
parent
2205e134db
commit
96aefde2ed
2 changed files with 0 additions and 23 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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/",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue