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:
Phantom 2026-01-06 17:28:34 +08:00 committed by GitHub
parent 9e45f801a8
commit a5038ac844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {