Change8

v0.50.0

Breaking Changes
📦 anthropic-sdkView on GitHub →
1 breaking2 features🐛 7 fixes🔧 4 symbols

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.

⚠️ Breaking Changes

  • ContentBlockDelta events have been extracted into their own schemas, which may require updating event handling logic in streaming responses.

Migration Steps

  1. Update code that processes streaming events to use the new ContentBlockDelta schemas.
  2. Upgrade httpx to at least version 0.25.0.
  3. If using Vertex AI, ensure the 'requests' extra is installed.

✨ New Features

  • api: extract ContentBlockDelta events into their own schemas
  • api: various manual updates to the API surface

🐛 Bug Fixes

  • client: send all configured auth headers correctly
  • client: deduplicate stop reason type
  • perf: optimize hot paths and skip traversing types for NotGiven values
  • project: bump httpx minimum version to 0.25.0 to resolve dependency issues
  • types: handle more discriminated union shapes
  • vertex: explicitly include requests extra and improve error messages
  • ci: ensure pip is available and remove publishing patch

Affected Symbols