We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fd805 commit 06a5c2dCopy full SHA for 06a5c2d
webview-ui/src/components/settings/SimpleThinkingBudget.tsx
@@ -62,6 +62,19 @@ export const SimpleThinkingBudget = ({
62
setApiConfigurationField,
63
])
64
65
+ useEffect(() => {
66
+ if (!isReasoningEffortSupported) return
67
+ const shouldEnable = isReasoningEffortRequired || currentReasoningEffort !== "none"
68
+ if (shouldEnable && apiConfiguration.enableReasoningEffort !== true) {
69
+ setApiConfigurationField("enableReasoningEffort", true, false)
70
+ }
71
+ }, [
72
+ isReasoningEffortSupported,
73
+ isReasoningEffortRequired,
74
+ currentReasoningEffort,
75
+ apiConfiguration.enableReasoningEffort,
76
+ setApiConfigurationField,
77
+ ])
78
if (!modelInfo || !isReasoningEffortSupported) {
79
return null
80
}
0 commit comments