Fix undefined model name
This commit is contained in:
parent
85d8581230
commit
50e84f7d21
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ export class CompletionProvider {
|
|||
return undefined;
|
||||
}
|
||||
|
||||
if (llm.model === undefined && llm.completionOptions?.model !== undefined) {
|
||||
llm.model = llm.completionOptions.model
|
||||
}
|
||||
|
||||
// Ignore empty API keys for Mistral since we currently write
|
||||
// a template provider without one during onboarding
|
||||
if (llm.providerName === "mistral" && llm.apiKey === "") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue