Skip to content

Commit 7f3eb92

Browse files
celestial-vaultElephant Lumps
andauthored
Thinking budget slider rendering (RooCodeInc#3762)
* render thinking budget slider * changeset --------- Co-authored-by: Elephant Lumps <[email protected]>
1 parent 2d390b5 commit 7f3eb92

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Fix thinking budget slider rendering

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,19 +2133,25 @@ const ApiOptions = ({
21332133
{selectedProvider === "nebius" && createDropdown(nebiusModels)}
21342134
</DropdownContainer>
21352135

2136-
{(selectedProvider === "anthropic" &&
2136+
{selectedProvider === "anthropic" &&
21372137
(selectedModelId === "claude-3-7-sonnet-20250219" ||
21382138
selectedModelId === "claude-sonnet-4-20250514" ||
2139-
selectedModelId === "claude-opus-4-20250514")) ||
2140-
(selectedProvider === "vertex" &&
2141-
(selectedModelId === "claude-3-7-sonnet@20250219" ||
2142-
selectedModelId === "claude-sonnet-4@20250514" ||
2143-
selectedModelId === "claude-opus-4@20250514") && (
2144-
<ThinkingBudgetSlider
2145-
apiConfiguration={apiConfiguration}
2146-
setApiConfiguration={setApiConfiguration}
2147-
/>
2148-
))}
2139+
selectedModelId === "claude-opus-4-20250514") && (
2140+
<ThinkingBudgetSlider
2141+
apiConfiguration={apiConfiguration}
2142+
setApiConfiguration={setApiConfiguration}
2143+
/>
2144+
)}
2145+
2146+
{selectedProvider === "vertex" &&
2147+
(selectedModelId === "claude-3-7-sonnet@20250219" ||
2148+
selectedModelId === "claude-sonnet-4@20250514" ||
2149+
selectedModelId === "claude-opus-4@20250514") && (
2150+
<ThinkingBudgetSlider
2151+
apiConfiguration={apiConfiguration}
2152+
setApiConfiguration={setApiConfiguration}
2153+
/>
2154+
)}
21492155

21502156
{selectedProvider === "xai" && selectedModelId.includes("3-mini") && (
21512157
<>
@@ -2198,7 +2204,6 @@ const ApiOptions = ({
21982204
)}
21992205
</>
22002206
)}
2201-
22022207
<ModelInfoView
22032208
selectedModelId={selectedModelId}
22042209
modelInfo={selectedModelInfo}

0 commit comments

Comments
 (0)