fix: correct Vertex AI claude-sonnet-4-6 model ID (#11626)

fix: correct Vertex AI claude-sonnet-4-6 model ID by removing date suffix

Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
roomote[bot] 2026-02-20 10:46:58 -07:00 committed by GitHub
parent 4288b0a72f
commit 93415c7204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -292,7 +292,7 @@ export const vertexModels = {
},
],
},
"claude-sonnet-4-6@20260114": {
"claude-sonnet-4-6": {
maxTokens: 8192,
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
supportsImages: true,
@ -541,7 +541,7 @@ export const vertexModels = {
export const VERTEX_1M_CONTEXT_MODEL_IDS = [
"claude-sonnet-4@20250514",
"claude-sonnet-4-5@20250929",
"claude-sonnet-4-6@20260114",
"claude-sonnet-4-6",
"claude-opus-4-6",
] as const

View file

@ -901,7 +901,7 @@ describe("VertexHandler", () => {
it("should enable 1M context for Claude Sonnet 4.6 when beta flag is set", () => {
const handler = new AnthropicVertexHandler({
apiModelId: "claude-sonnet-4-6@20260114",
apiModelId: "claude-sonnet-4-6",
vertexProjectId: "test-project",
vertexRegion: "us-central1",
vertex1MContext: true,