From 170b99d3261b7d2ef32ba9e03a51ac37bb1fb787 Mon Sep 17 00:00:00 2001 From: michaelh0226 Date: Tue, 10 Sep 2024 21:08:06 +0800 Subject: [PATCH] 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. --- core/llm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index b426b146a..f06e00086 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -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;