Skip to content

fix(examples): replace dated model IDs with stable aliases across all examples#1599

Open
MukundaKatta wants to merge 1 commit into
anthropics:mainfrom
MukundaKatta:fix/examples-update-dated-model-ids
Open

fix(examples): replace dated model IDs with stable aliases across all examples#1599
MukundaKatta wants to merge 1 commit into
anthropics:mainfrom
MukundaKatta:fix/examples-update-dated-model-ids

Conversation

@MukundaKatta
Copy link
Copy Markdown

Problem

16 example files use hardcoded dated model strings (claude-sonnet-4-5-20250929, claude-sonnet-4-20250514) that will break once those snapshots are deprecated.

Changes

  • claude-sonnet-4-5-20250929claude-sonnet-4-5 (14 files, 18 occurrences)
  • claude-sonnet-4-20250514claude-sonnet-4-0 (1 file, 1 occurrence)
  • anthropic.claude-sonnet-4-5-20250929-v1:0anthropic.claude-sonnet-4-5-v1:0 in bedrock.py

Vertex AI examples (vertex.py) use the @ date format which is correct for that platform and are left unchanged.

Extends the scope of #1596 beyond the single file fixed in #1597 — covers all 16 remaining affected files.

Fixes #1596

… examples

Replaces claude-sonnet-4-5-20250929 → claude-sonnet-4-5 and
claude-sonnet-4-20250514 → claude-sonnet-4-0 across 19 occurrences
in 15 example files. Extends the scope of anthropics#1596 beyond the single
file fixed in anthropics#1597.
@MukundaKatta MukundaKatta requested a review from a team as a code owner May 24, 2026 22:43
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.

fix(examples): replace dated model IDs with non-dated aliases

1 participant