Skip to content

Commit 663ecc4

Browse files
committed
feat: reduce Gemini 2.5 Pro thinking tokens default from 1024 to 128
- Changed minimum thinking tokens slider from 1024 to 128 in ThinkingBudget component - Changed default thinking tokens from 8192 to 128 in api constants - Adjusted slider step size from 1024 to 128 for finer control This change applies to all providers with thinking token settings defaulting to 1024
1 parent 8513263 commit 663ecc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/shared/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const shouldUseReasoningEffort = ({
5050
}): boolean => (!!model.supportsReasoningEffort && !!settings?.reasoningEffort) || !!model.reasoningEffort
5151

5252
export const DEFAULT_HYBRID_REASONING_MODEL_MAX_TOKENS = 16_384
53-
export const DEFAULT_HYBRID_REASONING_MODEL_THINKING_TOKENS = 8_192
53+
export const DEFAULT_HYBRID_REASONING_MODEL_THINKING_TOKENS = 128
5454

5555
// Max Tokens
5656

webview-ui/src/components/settings/ThinkingBudget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export const ThinkingBudget = ({ apiConfiguration, setApiConfigurationField, mod
8181
<div className="font-medium">{t("settings:thinkingBudget.maxThinkingTokens")}</div>
8282
<div className="flex items-center gap-1" data-testid="reasoning-budget">
8383
<Slider
84-
min={1024}
84+
min={128}
8585
max={modelMaxThinkingTokens}
86-
step={1024}
86+
step={128}
8787
value={[customMaxThinkingTokens]}
8888
onValueChange={([value]) => setApiConfigurationField("modelMaxThinkingTokens", value)}
8989
/>

0 commit comments

Comments
 (0)