Skip to content

Commit de7ce44

Browse files
committed
Fix Claude not supporting computer use
Cherry picked from: RooCodeInc/Roo-Code#3868
1 parent fd65025 commit de7ce44

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.changeset/petite-places-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix Claude not supporting computer use

src/shared/api.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,10 +2010,10 @@ export const PROMPT_CACHING_MODELS = new Set([
20102010
"anthropic/claude-3.7-sonnet",
20112011
"anthropic/claude-3.7-sonnet:beta",
20122012
"anthropic/claude-3.7-sonnet:thinking",
2013-
"anthropic/claude-sonnet-4-20250514",
2014-
"anthropic/claude-sonnet-4-20250514:thinking",
2015-
"anthropic/claude-opus-4-20250514",
2016-
"anthropic/claude-opus-4-20250514:thinking",
2013+
"anthropic/claude-sonnet-4",
2014+
"anthropic/claude-sonnet-4:thinking",
2015+
"anthropic/claude-opus-4",
2016+
"anthropic/claude-opus-4:thinking",
20172017
"google/gemini-2.5-pro-preview",
20182018
"google/gemini-2.5-flash-preview",
20192019
"google/gemini-2.5-flash-preview:thinking",
@@ -2031,10 +2031,10 @@ export const COMPUTER_USE_MODELS = new Set([
20312031
"anthropic/claude-3.7-sonnet",
20322032
"anthropic/claude-3.7-sonnet:beta",
20332033
"anthropic/claude-3.7-sonnet:thinking",
2034-
"anthropic/claude-sonnet-4-20250514",
2035-
"anthropic/claude-sonnet-4-20250514:thinking",
2036-
"anthropic/claude-opus-4-20250514",
2037-
"anthropic/claude-opus-4-20250514:thinking",
2034+
"anthropic/claude-sonnet-4",
2035+
"anthropic/claude-sonnet-4:thinking",
2036+
"anthropic/claude-opus-4",
2037+
"anthropic/claude-opus-4:thinking",
20382038
])
20392039

20402040
const routerNames = ["openrouter", "requesty", "glama", "unbound", "litellm", "kilocode-openrouter"] as const

0 commit comments

Comments
 (0)