fix: correct Vertex AI claude-sonnet-4-6 model ID#11626
Merged
hannesrudolph merged 1 commit intomainfrom Feb 20, 2026
Merged
Conversation
|
@hannesrudolph approval ? |
hannesrudolph
approved these changes
Feb 20, 2026
Collaborator
hannesrudolph
left a comment
There was a problem hiding this comment.
LGTM. Merging per Hannes' request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #11625
Description
This PR attempts to address Issue #11625. The Vertex AI model ID
claude-sonnet-4-6@20260114includes a date version suffix (@20260114) that causes a 404 error on Google Vertex AI. The correct model ID should beclaude-sonnet-4-6(without the date suffix), consistent with howclaude-opus-4-6is already defined in the same file.Changes:
packages/types/src/providers/vertex.ts: Renamed model key fromclaude-sonnet-4-6@20260114toclaude-sonnet-4-6in thevertexModelsobject, and updated the reference in theVERTEX_1M_CONTEXT_MODEL_IDSarray.src/api/providers/__tests__/anthropic-vertex.spec.ts: Updated the test referencing the old model ID.Feedback and guidance are welcome.
Test Procedure
npx vitest run api/providers/__tests__/anthropic-vertex.spec.tsfrom thesrc/directory: all 31 tests pass.turbo lint.turbo check-types.Pre-Submission Checklist
Documentation Updates
Additional Notes
The
claude-opus-4-6entry in the same file already follows the correct pattern (no date suffix), so this change alignsclaude-sonnet-4-6with that convention.Start a new Roo Code Cloud session on this branch