🐛 set supportsCompletions based on useLegacyCompletionsEndpoint model setting
Closes #1132
This commit is contained in:
parent
88fcace507
commit
514a642a05
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ export abstract class BaseLLM implements ILLM {
|
|||
if (this.providerName === "openai") {
|
||||
if (
|
||||
this.apiBase?.includes("api.groq.com") ||
|
||||
this.apiBase?.includes(":1337")
|
||||
this.apiBase?.includes(":1337") ||
|
||||
this._llmOptions.useLegacyCompletionsEndpoint?.valueOf() === false
|
||||
) {
|
||||
// Jan + Groq don't support completions : (
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue