mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: correct Claude Sonnet 4.5 model ID format (#8373)
This commit is contained in:
parent
c57539d4b5
commit
6759687180
2 changed files with 6 additions and 6 deletions
|
|
@ -38,7 +38,7 @@ export const OPEN_ROUTER_PROMPT_CACHING_MODELS = new Set([
|
|||
"anthropic/claude-3.7-sonnet:beta",
|
||||
"anthropic/claude-3.7-sonnet:thinking",
|
||||
"anthropic/claude-sonnet-4",
|
||||
"anthropic/claude-4.5-sonnet",
|
||||
"anthropic/claude-sonnet-4.5",
|
||||
"anthropic/claude-opus-4",
|
||||
"anthropic/claude-opus-4.1",
|
||||
"google/gemini-2.5-flash-preview",
|
||||
|
|
@ -60,7 +60,7 @@ export const OPEN_ROUTER_COMPUTER_USE_MODELS = new Set([
|
|||
"anthropic/claude-3.7-sonnet:beta",
|
||||
"anthropic/claude-3.7-sonnet:thinking",
|
||||
"anthropic/claude-sonnet-4",
|
||||
"anthropic/claude-4.5-sonnet",
|
||||
"anthropic/claude-sonnet-4.5",
|
||||
"anthropic/claude-opus-4",
|
||||
"anthropic/claude-opus-4.1",
|
||||
])
|
||||
|
|
@ -83,7 +83,7 @@ export const OPEN_ROUTER_REASONING_BUDGET_MODELS = new Set([
|
|||
"anthropic/claude-opus-4",
|
||||
"anthropic/claude-opus-4.1",
|
||||
"anthropic/claude-sonnet-4",
|
||||
"anthropic/claude-4.5-sonnet",
|
||||
"anthropic/claude-sonnet-4.5",
|
||||
"google/gemini-2.5-pro-preview",
|
||||
"google/gemini-2.5-pro",
|
||||
"google/gemini-2.5-flash-preview-05-20",
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ describe("OpenRouter API", () => {
|
|||
"google/gemini-2.5-flash", // OpenRouter doesn't report this as supporting prompt caching
|
||||
"google/gemini-2.5-flash-lite-preview-06-17", // OpenRouter doesn't report this as supporting prompt caching
|
||||
"anthropic/claude-opus-4.1", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-4.5-sonnet", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-sonnet-4.5", // Not yet available in OpenRouter API
|
||||
])
|
||||
|
||||
const ourCachingModels = Array.from(OPEN_ROUTER_PROMPT_CACHING_MODELS).filter(
|
||||
|
|
@ -53,7 +53,7 @@ describe("OpenRouter API", () => {
|
|||
|
||||
const excludedComputerUseModels = new Set([
|
||||
"anthropic/claude-opus-4.1", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-4.5-sonnet", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-sonnet-4.5", // Not yet available in OpenRouter API
|
||||
])
|
||||
|
||||
const expectedComputerUseModels = Array.from(OPEN_ROUTER_COMPUTER_USE_MODELS)
|
||||
|
|
@ -136,7 +136,7 @@ describe("OpenRouter API", () => {
|
|||
"google/gemini-2.5-flash-lite-preview-06-17",
|
||||
"google/gemini-2.5-pro",
|
||||
"anthropic/claude-opus-4.1", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-4.5-sonnet", // Not yet available in OpenRouter API
|
||||
"anthropic/claude-sonnet-4.5", // Not yet available in OpenRouter API
|
||||
])
|
||||
|
||||
const expectedReasoningBudgetModels = Array.from(OPEN_ROUTER_REASONING_BUDGET_MODELS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue