feat: add recent Claude models (Opus 4.6–4.8, Sonnet 4.6) and clean up config#6
Merged
Merged
Conversation
This was referenced Jun 4, 2026
Merged
…validation Add model aliases for recently released Claude models: - Claude Opus 4.6, 4.7, 4.8 (no @Date suffix) - Claude Sonnet 4.6 (no @Date suffix) - Claude Sonnet 4 (claude-sonnet-4-20250514) Fix model validation in _handle_anthropic(): the previous check `if "@" not in vertex_model` rejects models without a @Date suffix. Replace with a lookup against known aliases so both formats work.
5f38ee6 to
9526721
Compare
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.
Summary
Add model aliases for recently released Claude models and clean up the configuration module.
New models added
claude-opus-4-8)claude-opus-4-7)claude-opus-4-6)claude-sonnet-4-6)claude-sonnet-4-20250514)Other changes
config.py— the field names and type annotations are self-documenting; the removed comments were restating what the code already says.name@dateseparator pattern (e.g.claude-opus-4-6instead ofclaude-opus-4-6@20260101), so no validation changes needed — the existing routing handles both patterns.Testing
Tested against Vertex AI with all new model aliases. Streaming and non-streaming requests work correctly.