Skip to content

feat(py/anthropic): add Claude 5.5 and Fable models, drop retired ones - #170

Merged
hilariie merged 2 commits into
mainfrom
feat/py-anthropic-models-update
Nov 30, 2026
Merged

hilariie merged 2 commits into
mainfrom
feat/py-anthropic-models-update

Conversation

@hilariie

@hilariie hilariie commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of genkit-ai/genkit/issues/7312

Adds the current Claude models to the Anthropic plugin's catalog and removes the models the Claude API has retired or retires before the next release.

from genkit import Genkit
from genkit_anthropic import Anthropic

ai = Genkit(plugins=[Anthropic()])

# New catalog entry: listed in the Dev UI, native structured output for JSON.
response = await ai.generate(model=Anthropic.claude('claude-opus-5-5'), prompt='...', output_schema=City)

Changes

  • New models. claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5, claude-opus-5, claude-fable-5-1 and claude-fable-5-2 are in the catalog. The Dev UI lists them, Anthropic.claude() autocompletes them, and JSON requests to them use native structured output (output_config).
  • Retired models removed. claude-opus-4, claude-opus-4-1, claude-sonnet-4 and claude-sonnet-4-5 are no longer listed. The Claude API retired the first three on 2026-06-15 and 2026-08-05, and retires claude-sonnet-4-5 on 2026-11-30. The replacement for Sonnet 4.5 is claude-sonnet-5-5.

Breaking changes

None. KnownClaude no longer includes the four removed ids, but Anthropic.claude() accepts any string, so existing code still type-checks and resolves. Until 2026-11-30, claude-sonnet-4-5 keeps working through the generic fallback, which sends the bare id and returns JSON through the prompt instead of output_config.

@cabljac cabljac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments/questions

We're not releasing before Sonnet 4.5 retires on 11-30, so we're removing claude-sonnet-4-5 rather than deprecating it. Most of the comments below are fallout from that. Could you also update the PR title and description to match (4.5 removed, and the dated-id example)?

@hilariie hilariie changed the title feat(py/anthropic): add Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5 and Fable 5.1/5.2, and drop retired Claude 4 models feat(py/anthropic): add Claude 5.5 and Fable models, drop retired ones Nov 25, 2026
@hilariie

Copy link
Copy Markdown
Contributor Author

Updated the title and description. 4.5 is removed and the dated-id section is gone

@cabljac cabljac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hilariie
hilariie force-pushed the feat/py-anthropic-models-update branch from 976dfbe to 3f5c997 Compare November 30, 2026 16:10
@hilariie
hilariie merged commit 14eac3c into main Nov 30, 2026
20 checks passed
@hilariie
hilariie deleted the feat/py-anthropic-models-update branch November 30, 2026 16:53
@huangjeff5 huangjeff5 mentioned this pull request Dec 3, 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