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