From 2a450e7693271288a37bc72666e80d45b1101f1b 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 48888b5f139e5..0c663c0dfb1c8 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 84c5243ed2029..4d2bdbde3b8ab 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: {