From fb3f6d03789d358c820e3129d9ba7920cc366dad Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Thu, 22 May 2025 14:43:31 -0400 Subject: [PATCH] Fix Claude 4 models in Vertex (#3849) --- src/shared/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index ff7f6bc319..3545494354 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -658,7 +658,7 @@ export const vertexModels = { inputPrice: 1.25, outputPrice: 5, }, - "claude-sonnet-4-20250514:thinking": { + "claude-sonnet-4@20250514:thinking": { maxTokens: 64_000, contextWindow: 200_000, supportsImages: true, @@ -670,7 +670,7 @@ export const vertexModels = { cacheReadsPrice: 0.3, thinking: true, }, - "claude-sonnet-4-20250514": { + "claude-sonnet-4@20250514": { maxTokens: 8192, contextWindow: 200_000, supportsImages: true, @@ -682,7 +682,7 @@ export const vertexModels = { cacheReadsPrice: 0.3, thinking: false, }, - "claude-opus-4-20250514:thinking": { + "claude-opus-4@20250514:thinking": { maxTokens: 64_000, contextWindow: 200_000, supportsImages: true, @@ -694,7 +694,7 @@ export const vertexModels = { cacheReadsPrice: 1.5, thinking: true, }, - "claude-opus-4-20250514": { + "claude-opus-4@20250514": { maxTokens: 8192, contextWindow: 200_000, supportsImages: true,