Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.239 Home All releases olderv2.1.238 v2.1.240newer
Claude Code v2.1.239

Python SDK upgrade guide rewritten against the shipped anthropic 1.0.0 migration notes

Use it now
Useful3 Signal2
Skills

The /claude-api Python upgrade guide now matches the released 1.0.0 SDK built on httpx2.

/claude-api
What

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.

Details
  • Reverses the earlier advice to delete temperature, top_p and top_k. They are gone from the 1.x signatures but can still be passed through extra_body when the pinned model accepts them, with the per-model rules spelled out.
  • Passing output_format as a plain dict is now rejected by the stream() and count_tokens() helpers too.
  • The client configuration sample no longer imports httpx and uses anthropic.Timeout instead.
Evidence

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.

See this entry in the whole of v2.1.239 →