Skip to content

Commit

Permalink
馃悰 fix: fix DeepSeek using wrong model ID (#2484)
Browse files Browse the repository at this point in the history
* 馃悰 fix: Fix DeepSeek using wrong model ID

* 馃悰 fix: Fix DeepSeek using wrong model ID
  • Loading branch information
RubuJam committed May 14, 2024
1 parent 5815d86 commit 465dbfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/settings/llm/DeepSeek/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ProviderConfig from '../components/ProviderConfig';
const DeepSeekProvider = memo(() => {
return (
<ProviderConfig
checkModel={'deepseek/deepseek-chat'}
checkModel={'deepseek-chat'}
modelList={{ showModelFetcher: true }}
provider={ModelProvider.DeepSeek}
title={<DeepSeek.Combine size={28} type={'color'} />}
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/chat/agentRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 465dbfc

Please sign in to comment.