Skip to content

feat: add recent Claude models (Opus 4.6–4.8, Sonnet 4.6) and clean up config#6

Merged
prasadus92 merged 1 commit into
prasadus92:mainfrom
gnodet:feat/recent-claude-models
Jun 6, 2026
Merged

feat: add recent Claude models (Opus 4.6–4.8, Sonnet 4.6) and clean up config#6
prasadus92 merged 1 commit into
prasadus92:mainfrom
gnodet:feat/recent-claude-models

Conversation

@gnodet

@gnodet gnodet commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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-8)
  • Claude Opus 4.7 (claude-opus-4-7)
  • Claude Opus 4.6 (claude-opus-4-6)
  • Claude Sonnet 4.6 (claude-sonnet-4-6)
  • Claude Sonnet 4 (claude-sonnet-4-20250514)

Other changes

  • Cleaned up verbose inline comments in config.py — the field names and type annotations are self-documenting; the removed comments were restating what the code already says.
  • Recent Vertex model IDs no longer use the name@date separator pattern (e.g. claude-opus-4-6 instead of claude-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.

…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.
@gnodet gnodet force-pushed the feat/recent-claude-models branch from 5f38ee6 to 9526721 Compare June 5, 2026 00:23
@prasadus92 prasadus92 merged commit 9526721 into prasadus92:main Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants