mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +08:00
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
This commit is contained in:
parent
9e45f801a8
commit
a5038ac844
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user