Repository navigation
Commit baf8d7a
docs: replace retired claude-sonnet-4-5 in examples and docstring (#1070)
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>1 parent 1923b43 commit baf8d7a
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- examples/langchain
- py/src/braintrust/integrations/claude_agent_sdk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments