Skip to content

Commit

Permalink
♻️ refactor(deepseek): 调整模型配置和类型定义
Browse files Browse the repository at this point in the history
- 更新Deepseek支持的模型列表
-【变更】移除deepseek-coder和deepseek-chat-pro模型
-【新增】添加deepseek-reasoner模型
-【优化】提升deepseek-chat模型的最大token限制
- 增加模型使用成本配置信息
  • Loading branch information
littleCareless committed Feb 6, 2025
1 parent 4bd0e55 commit 1f08e97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
24 changes: 11 additions & 13 deletions src/ai/providers/DeepseekAIProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,31 @@ const deepseekModels: AIModel[] = [
{
id: "deepseek-chat",
name: "Deepseek Chat - 通用大语言模型: 对话流畅自然,知识面广",
maxTokens: { input: 32768, output: 4096 },
maxTokens: { input: 65536, output: 8192 },
provider: { id: "deepseek", name: "deepseek" },
default: true,
capabilities: {
streaming: true,
functionCalling: true,
},
},
{
id: "deepseek-coder",
name: "Deepseek Coder - 代码助手: 专注于代码生成与技术问答",
maxTokens: { input: 32768, output: 4096 },
provider: { id: "deepseek", name: "deepseek" },
capabilities: {
streaming: true,
functionCalling: true,
cost: {
input: 0.000001,
output: 0.000002,
},
},
{
id: "deepseek-chat-pro",
name: "Deepseek Chat Pro - 商业版: 性能全面提升的企业级模型",
maxTokens: { input: 32768, output: 4096 },
id: "deepseek-reasoner",
name: "Deepseek Reasoner - 强化推理能力的大模型",
maxTokens: { input: 65536, output: 8192 },
provider: { id: "deepseek", name: "deepseek" },
capabilities: {
streaming: true,
functionCalling: true,
},
cost: {
input: 0.000004,
output: 0.000016,
},
},
];

Expand Down
5 changes: 1 addition & 4 deletions src/ai/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,7 @@ export type GeminiAIModels =
| "gemini-1.5-pro"
| "gemini-2.0-flash-exp";

export type DeepseekModels =
| "deepseek-chat"
| "deepseek-coder"
| "deepseek-chat-pro";
export type DeepseekModels = "deepseek-chat" | "deepseek-reasoner";

export type AIProviders =
| "anthropic"
Expand Down

0 comments on commit 1f08e97

Please sign in to comment.