Skip to content

Commit 822647c

Browse files
authored
Fix context window size setting on OpenAI compatible provider (RooCodeInc#2162)
1 parent fa0c4e5 commit 822647c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/bright-adults-lie.md

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 context window size setting on OpenAI compatible provider

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ export function normalizeApiConfiguration(apiConfiguration?: ApiConfiguration):
15431543
return {
15441544
selectedProvider: provider,
15451545
selectedModelId: apiConfiguration?.openAiModelId || "",
1546-
selectedModelInfo: openAiModelInfoSaneDefaults,
1546+
selectedModelInfo: apiConfiguration?.openAiModelInfo || openAiModelInfoSaneDefaults,
15471547
}
15481548
case "ollama":
15491549
return {

0 commit comments

Comments
 (0)