From a5038ac84488ba023957eea1e7289ce498ab14e8 Mon Sep 17 00:00:00 2001 From: Phantom Date: Tue, 6 Jan 2026 17:28:34 +0800 Subject: [PATCH] fix: Add reasoning control for Deepseek hybrid inference models when reasoning effort is 'none' (#12314) fix: Add reasoning control for Deepseek hybrid inference models when reasoning effort is 'none' It prevents warning --- src/renderer/src/aiCore/utils/reasoning.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/src/aiCore/utils/reasoning.ts b/src/renderer/src/aiCore/utils/reasoning.ts index ab8a0b7983..c57dc31d17 100644 --- a/src/renderer/src/aiCore/utils/reasoning.ts +++ b/src/renderer/src/aiCore/utils/reasoning.ts @@ -118,6 +118,11 @@ export function getReasoningEffort(assistant: Assistant, model: Model): Reasonin return { thinking: { type: 'disabled' } } } + // Deepseek, default behavior is non-thinking + if (isDeepSeekHybridInferenceModel(model)) { + return {} + } + // GPT 5.1, GPT 5.2, or newer if (isSupportNoneReasoningEffortModel(model)) { return {