fix: deepseek doesn't support 'https://api.deepseek.com/completions' URL currently. When user selecting code in editor, and then use 'CMD +I' command to let model to modify codes, 400 error happens.

This commit is contained in:
michaelh0226 2024-09-10 21:08:06 +08:00
parent 15584f1860
commit 170b99d326

View file

@ -76,7 +76,7 @@ export abstract class BaseLLM implements ILLM {
return false;
}
}
if (["groq", "mistral"].includes(this.providerName)) {
if (["groq", "mistral", "deepseek"].includes(this.providerName)) {
return false;
}
return true;