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: {