diff --git a/app/constant.ts b/app/constant.ts index ce00d063ebd..14c8c78e5f3 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -393,6 +393,7 @@ You are an AI assistant with access to system tools. Your role is to help users export const SUMMARIZE_MODEL = "gpt-4o-mini"; export const GEMINI_SUMMARIZE_MODEL = "gemini-pro"; +export const DEEPSEEK_SUMMARIZE_MODEL = "deepseek-chat"; export const KnowledgeCutOffDate: Record = { default: "2021-09", @@ -561,7 +562,7 @@ const iflytekModels = [ "4.0Ultra", ]; -const deepseekModels = ["deepseek-chat", "deepseek-coder"]; +const deepseekModels = ["deepseek-chat", "deepseek-coder", "deepseek-reasoner"]; const xAIModes = ["grok-beta"]; diff --git a/app/store/chat.ts b/app/store/chat.ts index e152c7522f0..87c1a8beba0 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -20,6 +20,7 @@ import { DEFAULT_MODELS, DEFAULT_SYSTEM_TEMPLATE, GEMINI_SUMMARIZE_MODEL, + DEEPSEEK_SUMMARIZE_MODEL, KnowledgeCutOffDate, MCP_SYSTEM_TEMPLATE, MCP_TOOLS_TEMPLATE, @@ -143,7 +144,10 @@ function getSummarizeModel( } if (currentModel.startsWith("gemini")) { return [GEMINI_SUMMARIZE_MODEL, ServiceProvider.Google]; + } else if (currentModel.startsWith("deepseek-")) { + return [DEEPSEEK_SUMMARIZE_MODEL, ServiceProvider.DeepSeek]; } + return [currentModel, providerName]; }