Migrating to Anthropic SDK v0.50.0
Version v0.50.0 introduces 1 breaking change. This guide details how to update your code.
Released: 4/22/2025
1
Breaking Changes
3
Migration Steps
4
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
ContentBlockDeltaNotGivenhttpxanthropic.typesBreaking Changes
●Issue #1
ContentBlockDelta events have been extracted into their own schemas, which may require updating event handling logic in streaming responses.
Migration Steps
- 1Update code that processes streaming events to use the new ContentBlockDelta schemas.
- 2Upgrade httpx to at least version 0.25.0.
- 3If using Vertex AI, ensure the 'requests' extra is installed.
Release Summary
Release 0.50.0 introduces schema changes for ContentBlockDelta events, improves performance by optimizing hot paths, and bumps the minimum httpx dependency to 0.25.0.
Need More Details?
View the full release notes and all changes for Anthropic SDK v0.50.0.
View Full Changelog