Anthropic Python SDK Sets v1 Migration
Anthropic’s Python SDK v1 introduces breaking changes, including a move from `httpx` to the Pydantic-maintained `httpx2`, a Python 3.10 minimum, and removal of legacy API surfaces. Claude Code can automate much of the upgrade with `/claude-api upgrade python`.
This is a meaningful cleanup release, but the transport swap makes it more operationally disruptive than a typical SDK major version.
- –Custom HTTP clients, transports, type annotations, and response handling must migrate from `httpx` to `httpx2`
- –Mocking, tracing, APM, and instrumentation tools that patch `httpx` may silently stop observing SDK traffic
- –The legacy Text Completions API and deprecated parameters such as `temperature` and `top_p` are removed from standard interfaces
- –Async raw-response handling now requires awaited methods such as `response.parse()` and `response.text()`
- –Teams should run the migration tool, review the diff, and test Bedrock, streaming, and custom transport integrations before deployment
DISCOVERED
1d ago
2026-08-21
PUBLISHED
1d ago
2026-08-21
RELEVANCE
AUTHOR
cjav_dev