Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.239 ·

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

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

Use it now Improvements
JSON All of v2.1.239
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SkillsArea: what it touches
ImprovementsKind: in v2.1.239,
What probably matters to youSection of the release
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.

Read from
Names in the bundle/claude-api
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded /claude-api upgrade to migrate Python projects from anthropic 0.x to 1.x, and updated the skill's Python reference for 1.x (timeouts…

See this entry in the whole of v2.1.239 →

Feedback