mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
fix(SettingsTab): refine reasoning effort handling for Grok models
fix: #4735
This commit is contained in:
parent
5fad4892ad
commit
18fb511c02
@ -149,7 +149,9 @@ const SettingsTab: FC<Props> = (props) => {
|
|||||||
setMaxTokens(assistant?.settings?.maxTokens ?? DEFAULT_MAX_TOKENS)
|
setMaxTokens(assistant?.settings?.maxTokens ?? DEFAULT_MAX_TOKENS)
|
||||||
setStreamOutput(assistant?.settings?.streamOutput ?? true)
|
setStreamOutput(assistant?.settings?.streamOutput ?? true)
|
||||||
setReasoningEffort(assistant?.settings?.reasoning_effort)
|
setReasoningEffort(assistant?.settings?.reasoning_effort)
|
||||||
|
}, [assistant])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
// 当是Grok模型时,处理reasoning_effort的设置
|
// 当是Grok模型时,处理reasoning_effort的设置
|
||||||
// For Grok models, only 'low' and 'high' reasoning efforts are supported.
|
// For Grok models, only 'low' and 'high' reasoning efforts are supported.
|
||||||
// This ensures compatibility with the model's capabilities and avoids unsupported configurations.
|
// This ensures compatibility with the model's capabilities and avoids unsupported configurations.
|
||||||
@ -163,7 +165,7 @@ const SettingsTab: FC<Props> = (props) => {
|
|||||||
onReasoningEffortChange('high')
|
onReasoningEffortChange('high')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [assistant, onReasoningEffortChange])
|
}, [assistant?.model, assistant?.settings?.reasoning_effort, onReasoningEffortChange])
|
||||||
|
|
||||||
const formatSliderTooltip = (value?: number) => {
|
const formatSliderTooltip = (value?: number) => {
|
||||||
if (value === undefined) return ''
|
if (value === undefined) return ''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user