Kingy AI
Retained canonical change record

Anthropic Python SDK v1 introduces breaking runtime and API changes

Anthropic released Python SDK v1.0.0 on August 20, 2026 with Python 3.10+, httpx2, removed SDK interfaces and sampling keywords from generated method signatures, async raw-response changes and stricter AnthropicBedrock region resolution. Supported older model APIs may still accept sampling through extra_body; Bedrock region can resolve through constructor, environment or selected boto3 profile.

Claim review: 2026-10-28 · active

Required action

Pin a validated SDK while preparing the upgrade. Move to Python 3.10+, replace custom httpx objects with httpx2, migrate removed SDK interfaces, update async raw parsing and confirm an AWS region resolves before staging v1.

Scope and evidence limits

Claude API and AnthropicBedrock Python SDK integrations

Unpinned upgrades can fail at import, request construction, async response parsing or Bedrock client initialization. Python 3.9 environments cannot run v1. Synchronous raw-response text is text() and content is read(). Kingy reviewed tagged release, migration and source documents on October 28, 2026; no SDK installation, migration, runtime or AWS account test was performed. This historical v1.0.0 review does not establish the latest SDK release.

not_tested

Official sources

Affected components

anthropic Python SDK v1, httpx2 transport, legacy Text Completions, Messages sampling parameters, async raw responses and AnthropicBedrock region handling

Affected users

Python applications upgrading the Anthropic SDK to v1, especially custom HTTP clients, mocks, legacy completions, sampling overrides, async raw-response parsing and Bedrock integrations.

Migration guidance

Upgrade to Python 3.10+, move custom HTTP configuration to httpx2, migrate Text Completions calls to Messages, await async raw-response parse(), read(), text() and json() methods, and confirm Bedrock region resolution. If application-level tracing or mocks require the optional httpx2.alias_httpx() workaround, call it before any import of httpx; avoid imposing process-wide aliasing from a library. For supported older model APIs, removed SDK sampling keywords may be passed via extra_body.

Correction history

Event ID: ksr-anthropic-python-sdk-v1-2026-08-20. Historical before/after captures are not implied by this retained report.

Back to the tracker