Skip to content

docs: replace retired claude-sonnet-4-5 in examples and docstring - #1070

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
braintrustdata:mainfrom
pcbeingused333:fix/retired-claude-model-example
Nov 5, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
braintrustdata:mainfrom
pcbeingused333:fix/retired-claude-model-example

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

The langchain prompt-cache example and two claude_agent_sdk docstring snippets default to claude-sonnet-4-5-20250929, which Anthropic retires on 2026-11-30. After that date, copying the example fails with a model-not-found error.

Changes: use claude-sonnet-5, the Sonnet alias already used in test_anthropic.py, in examples/langchain/anthropic_prompt_cache.py and the two docstring snippets in claude_agent_sdk/__init__.py. Recorded VCR cassettes, and the test that replays them (langchain/test_callbacks.py), keep the old ID because they are historical recordings.

Test: no behaviour change; both files compile, and the old ID now appears only in cassette-backed tests.

This change was prepared with the assistance of an AI coding tool (Claude) and reviewed before submission.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T19:16:50.982179Z eb9c15f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit baf8d7a into braintrustdata:main Nov 5, 2026
98 checks passed
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