Repository navigation
fix(py): refresh the Claude catalog to the models the Claude API serves - #184
Closed
huangjeff5 wants to merge 1 commit into
Closed
huangjeff5 wants to merge 1 commit into
huangjeff5 wants to merge 1 commit into
Conversation
Add Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1 and Opus 5. Drop Sonnet 4, Opus 4 and Opus 4.1, which Anthropic has retired; they still resolve on demand with generic capabilities.
Collaborator
Author
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.
The Anthropic plugin's built-in Claude catalog now matches the models the Claude API serves today. It adds the 5.5 generation (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5), plus Fable 5.1 and Opus 5. It drops Sonnet 4, Opus 4 and Opus 4.1, which Anthropic has retired.
The catalog is what makes a model autocomplete in
Anthropic.claude(...), appear in the Dev UI model list, and use native structured output. Without this change, the newest Claude models get none of that.Changes
Added:
claude-fable-5-2,claude-opus-5-5,claude-sonnet-5-5,claude-haiku-5-5,claude-fable-5-1,claude-opus-5. Each sends its dateless id, which is a pinned snapshot from the 4.6 generation on.Removed (retired on the Claude API):
claude-sonnet-4andclaude-opus-4retired 2026-06-15.claude-opus-4-1retired 2026-08-05.These ids still resolve on demand. They no longer appear in the Dev UI list or autocomplete, and they get generic capabilities.
Kept but deprecated:
claude-opus-4-5retires 2027-01-22, andclaude-sonnet-4-5retires 2026-11-30. They stay listed while the API still serves them.Order: newest first, latest models, then earlier ones, then deprecated. The Dev UI lists static models in this order.
Decisions
test_mythos_excluded_but_resolvable._claude(label, version)helper instead of 12 copies of the sameModelInfo: Every cataloged model has the same capabilities: text, images, tools, and native structured output. A future model that differs would get its ownModelInfo.Source: Anthropic's models overview and model deprecations, checked 2026-11-25. The model-garden list for Claude on Google Cloud has the same 5.5 ids.
Verification
packages/genkit-anthropic: 388 passed, 5 skipped (live tests, noANTHROPIC_API_KEY).packages/genkit-vertexai: 53 passed.KnownClaudeand the catalog dict hold the same set still passes.main.Breaking changes
None to the API.
KnownClaudeloses three retired members, butAnthropic.claude()takesKnownClaude | str, so code that passes them still type-checks and runs.Not in this PR
genkit-amazon-bedrockhas its own Claude catalog with Bedrock ids. It needs the same refresh separately.claude-sonnet-4as a generic fixture still pass. They now exercise the unknown-model path, which they never depended on.