Skip to content

Commit

Permalink
🐛 fix: fix DeepSeek using wrong model ID (lobehub#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 authored and ipoly committed Jul 29, 2024
1 parent 5f12824 commit 2a450e7
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 2a450e7

Please sign in to comment.