The /claude-api Python upgrade guide now matches the released 1.0.0 SDK built on httpx2.
What's wrong with this entry?
The /claude-api Python upgrade guide now reflects the released 1.0.0 SDK: it is built on httpx2, so anthropic.Timeout is an httpx2 timeout and a timeout object from the older httpx package is rejected when the request is made.
- Reverses the earlier advice to delete
temperature,top_pandtop_k. They are gone from the 1.x signatures but can still be passed throughextra_bodywhen the pinned model accepts them, with the per-model rules spelled out. - Passing
output_formatas a plain dict is now rejected by thestream()andcount_tokens()helpers too. - The client configuration sample no longer imports httpx and uses
anthropic.Timeoutinstead.
Last reconciled with MIGRATION.md at the 1.0.0 release (2026-08-20)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.