Skip to content

Commit c52d6d5

Browse files
Fix openrouter names for caching and computer use (#3868)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 29ebd9b commit c52d6d5

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.changeset/sweet-turtles-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix OpenRouter names

src/shared/api.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,10 +1921,10 @@ export const PROMPT_CACHING_MODELS = new Set([
19211921
"anthropic/claude-3.7-sonnet",
19221922
"anthropic/claude-3.7-sonnet:beta",
19231923
"anthropic/claude-3.7-sonnet:thinking",
1924-
"anthropic/claude-sonnet-4-20250514",
1925-
"anthropic/claude-sonnet-4-20250514:thinking",
1926-
"anthropic/claude-opus-4-20250514",
1927-
"anthropic/claude-opus-4-20250514:thinking",
1924+
"anthropic/claude-sonnet-4",
1925+
"anthropic/claude-sonnet-4:thinking",
1926+
"anthropic/claude-opus-4",
1927+
"anthropic/claude-opus-4:thinking",
19281928
"google/gemini-2.5-pro-preview",
19291929
"google/gemini-2.5-flash-preview",
19301930
"google/gemini-2.5-flash-preview:thinking",
@@ -1942,10 +1942,10 @@ export const COMPUTER_USE_MODELS = new Set([
19421942
"anthropic/claude-3.7-sonnet",
19431943
"anthropic/claude-3.7-sonnet:beta",
19441944
"anthropic/claude-3.7-sonnet:thinking",
1945-
"anthropic/claude-sonnet-4-20250514",
1946-
"anthropic/claude-sonnet-4-20250514:thinking",
1947-
"anthropic/claude-opus-4-20250514",
1948-
"anthropic/claude-opus-4-20250514:thinking",
1945+
"anthropic/claude-sonnet-4",
1946+
"anthropic/claude-sonnet-4:thinking",
1947+
"anthropic/claude-opus-4",
1948+
"anthropic/claude-opus-4:thinking",
19491949
])
19501950

19511951
const routerNames = ["openrouter", "requesty", "glama", "unbound", "litellm"] as const

0 commit comments

Comments
 (0)