Fix undefined model name

This commit is contained in:
pdanek 2024-11-21 14:06:14 +01:00
parent 85d8581230
commit 50e84f7d21

View file

@ -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 === "") {