Fix openrouter names for caching and computer use (#3868)

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Matt Rubens 2025-05-22 17:07:56 -04:00 committed by GitHub
parent 29ebd9b274
commit c52d6d52ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Fix OpenRouter names

View file

@ -1921,10 +1921,10 @@ export const PROMPT_CACHING_MODELS = new Set([
"anthropic/claude-3.7-sonnet",
"anthropic/claude-3.7-sonnet:beta",
"anthropic/claude-3.7-sonnet:thinking",
"anthropic/claude-sonnet-4-20250514",
"anthropic/claude-sonnet-4-20250514:thinking",
"anthropic/claude-opus-4-20250514",
"anthropic/claude-opus-4-20250514:thinking",
"anthropic/claude-sonnet-4",
"anthropic/claude-sonnet-4:thinking",
"anthropic/claude-opus-4",
"anthropic/claude-opus-4:thinking",
"google/gemini-2.5-pro-preview",
"google/gemini-2.5-flash-preview",
"google/gemini-2.5-flash-preview:thinking",
@ -1942,10 +1942,10 @@ export const COMPUTER_USE_MODELS = new Set([
"anthropic/claude-3.7-sonnet",
"anthropic/claude-3.7-sonnet:beta",
"anthropic/claude-3.7-sonnet:thinking",
"anthropic/claude-sonnet-4-20250514",
"anthropic/claude-sonnet-4-20250514:thinking",
"anthropic/claude-opus-4-20250514",
"anthropic/claude-opus-4-20250514:thinking",
"anthropic/claude-sonnet-4",
"anthropic/claude-sonnet-4:thinking",
"anthropic/claude-opus-4",
"anthropic/claude-opus-4:thinking",
])
const routerNames = ["openrouter", "requesty", "glama", "unbound", "litellm"] as const