mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-08 22:21:23 +00:00
fix: auto-sync enableReasoningEffort with reasoning dropdown selection (#8890)
This commit is contained in:
parent
b5fd805cf0
commit
06a5c2dd19
1 changed files with 13 additions and 0 deletions
|
|
@ -62,6 +62,19 @@ export const SimpleThinkingBudget = ({
|
|||
setApiConfigurationField,
|
||||
])
|
||||
|
||||
useEffect(() => {
|
||||
if (!isReasoningEffortSupported) return
|
||||
const shouldEnable = isReasoningEffortRequired || currentReasoningEffort !== "none"
|
||||
if (shouldEnable && apiConfiguration.enableReasoningEffort !== true) {
|
||||
setApiConfigurationField("enableReasoningEffort", true, false)
|
||||
}
|
||||
}, [
|
||||
isReasoningEffortSupported,
|
||||
isReasoningEffortRequired,
|
||||
currentReasoningEffort,
|
||||
apiConfiguration.enableReasoningEffort,
|
||||
setApiConfigurationField,
|
||||
])
|
||||
if (!modelInfo || !isReasoningEffortSupported) {
|
||||
return null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue