From 465dbfc3b13f7f2ab7481524d970fd67a188dd05 Mon Sep 17 00:00:00 2001 From: Rubu Jam Date: Tue, 14 May 2024 16:02:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20DeepSeek=20using=20?= =?UTF-8?q?wrong=20model=20ID=20(#2484)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 fix: Fix DeepSeek using wrong model ID * 🐛 fix: Fix DeepSeek using wrong model ID --- src/app/(main)/settings/llm/DeepSeek/index.tsx | 2 +- src/app/api/chat/agentRuntime.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/(main)/settings/llm/DeepSeek/index.tsx b/src/app/(main)/settings/llm/DeepSeek/index.tsx index 48888b5f139e..0c663c0dfb1c 100644 --- a/src/app/(main)/settings/llm/DeepSeek/index.tsx +++ b/src/app/(main)/settings/llm/DeepSeek/index.tsx @@ -10,7 +10,7 @@ import ProviderConfig from '../components/ProviderConfig'; const DeepSeekProvider = memo(() => { return ( } diff --git a/src/app/api/chat/agentRuntime.ts b/src/app/api/chat/agentRuntime.ts index 84c5243ed202..4d2bdbde3b8a 100644 --- a/src/app/api/chat/agentRuntime.ts +++ b/src/app/api/chat/agentRuntime.ts @@ -139,7 +139,9 @@ const getLlmOptionsFromPayload = (provider: string, payload: JWTPayload) => { } case ModelProvider.DeepSeek: { const { DEEPSEEK_API_KEY } = getServerConfig(); + const apiKey = apiKeyManager.pick(payload?.apiKey || DEEPSEEK_API_KEY); + return { apiKey }; } case ModelProvider.TogetherAI: {