Python SDK 1.0

The SDK's HTTP layer moves from httpx to httpx2, a maintained, API-compatible fork.

Department
Engineering
Related links
Share

Python SDK 1.0 is a breaking release, so check before you upgrade.

It requires Python 3.10 or later, moves the HTTP layer from httpx to httpx2, a maintained, API-compatible fork, and removes long-deprecated surface: the legacy Text Completions API, the temperature, top_p, and top_k parameters on Messages methods, and the tool runner's client-side compaction_control.

If you rely on httpx-based tracing or mocking tools, such as OTel, Sentry, or respx, call httpx2.alias_httpx() at startup. Without it, those tools stop seeing SDK traffic, and you won't get an error to tell you.

On the async client, with_raw_response results need await response.parse(), and AnthropicBedrock raises an error when no AWS region is configured instead of defaulting to us-east-1. The migration guide has before-and-after snippets for every change.

Earlier updates

Aug 19, 2026
Aug 18, 2026
Aug 13, 2026
All updates