-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: Update Vertex AI Claude Sonnet models to 1M context window #8685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
eefe194
feat: enable 1M context window for Claude Sonnet 4 and 4.5 on Vertex AI
roomote a709b5d
feat(vertex): add [1m] variants for Claude Sonnet models and send ant…
roomote 9d881fe
fix(types): remove supportsComputerUse from Vertex [1m] variants to s…
roomote d388654
feat(vertex): region-aware pricing for Vertex Claude Sonnet 4/4.5 wit…
roomote 5ddd930
feat(vertex): set [1m] Sonnet pricing to >200k tier and constrain VER…
roomote b8d52a6
test(webview): restore full VERTEX_REGIONS to satisfy unit tests
roomote 7ed34a1
fix(vertex-pricing): default to under-200k; [1m] variants map to >200…
roomote 3bec87b
fix(vertex): default to under-200k pricing; gate 1M beta header by [1…
roomote e32d1bf
chore(vertex): remove supportsComputerUse from [1m] variants to align…
roomote c6d8aaf
feat: generalize "over 200k" large input tier across providers and ap…
roomote dbd835d
fix(webview-ui): narrow gemini tier typing and pricing fields; re-tri…
roomote 3329fca
fix(cost): make pricing tier selection per-request and avoid auto-sel…
roomote 549ed0b
refactor(vertex): centralize Vertex pricing and 1M context in types h…
roomote File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code checks
this.options.anthropicBeta1MContextwhich doesn't exist in the Vertex provider settings schema. ThevertexSchemain provider-settings.ts (line 238) doesn't includeanthropicBeta1MContext- that property only exists inanthropicSchema(line 199). This creates a critical discrepancy: when users enablelargeInputTierEnabledfor Vertex Sonnet 4/4.5 models, the frontend will charge 1M pricing but the backend won't send the requiredanthropic-beta: context-1m-2025-08-07header, resulting in users being charged for 1M context while only receiving 200K. The check should usethis.options.largeInputTierEnabledinstead to match the frontend logic in useSelectedModel.ts line 253.