Anthropic Python SDK v1.0 Released: Major Breaking Changes & Deprecations
Anthropic has released version 1.0 of its Python SDK, introducing significant breaking changes and deprecations. This major update shifts the HTTP layer to the maintained `httpx2` fork and requires Python 3.10 or later for enhanced compatibility and performance. It removes several long-deprecated APIs and parameters, including the legacy Text Completions API and specific Messages method arguments. Developers should consult the provided v1 migration guide to address changes impacting the async client and `AnthropicBedrock` integration.
- →HTTP Layer Migrates to httpx2, Requires Python 3.10+
- →Legacy Text Completions API and Parameters Removed
- →Updates to Async Client and AnthropicBedrock Behavior
- →Anthropic Python SDK v1.0 Released
Breaking changes (2) ›
- HTTP Layer Migrates to httpx2, Requires Python 3.10+
The SDK's HTTP layer now uses `httpx2`, an API-compatible fork, which may require calling `httpx2.alias_httpx()` at startup for tracing or mocking libraries. Additionally, v1.0 mandates Python 3.10 or later, dropping support for older Python versions.
- Updates to Async Client and AnthropicBedrock Behavior
Async client `with_raw_response` results now require `await response.parse()`. The `AnthropicBedrock` client will now raise an error when no AWS region is configured, instead of defaulting to `us-east-1`.
Deprecations (1) ›
- Legacy Text Completions API and Parameters Removed
Long-deprecated features have been removed, including the legacy Text Completions API, `temperature`, `top_p`, and `top_k` parameters on Messages methods, and the tool runner's client-side `compaction_control`.
Notes (1) ›
- Anthropic Python SDK v1.0 Released
Anthropic has released version 1.0 of its Python SDK, marking a major update with significant API changes and deprecations for a cleaner, more stable development experience.
https://platform.claude.com/docs/en/release-notes/overview
Related releases
- Anthropic Launches $5M Grant Program for AI Wellbeing Research Anthropic News ·
- Claude Code v2.1.245 Patches Linux Startup Crash Claude Code Releases ·
- Claude Code v2.1.243 Enhances Usage Visibility and Configuration Options Claude Code Releases ·
- Claude Code v2.1.241: Bug Fixes and Reliability Improvements Claude Code Releases ·
- Claude Code v2.1.240: Bug Fixes and Reliability Improvements Claude Code Releases ·
- Anthropic Claude Code v2.1.239 Updates Cost Estimates and Fixes Numerous Bugs Claude Code Releases ·