Repository navigation
v0.48.0
🎉 Overview
v0.48.0 makes the SDK compatible with the newer anthropic client (1.x) and makes Claude Haiku 5.5 the new default Claude model.
✨ New Features
- Claude Haiku 5.5 (
claude-haiku-5-5) is now the default Claude model, replacingclaude-sonnet-5by @philipph-askui in #318
🐛 Bug Fixes
- Made the SDK compatible with the
anthropic1.x client —temperatureis now handled per request depending on the model: for sampling-capable models without adaptive thinking (Sonnet 4/4.5/4.6, Opus 4.1/4.5/4.6, Haiku 4.5) it is sent in the request body viaextra_body(independent of the client version), while for sampling-deprecated models (Sonnet 5, Opus 4.7/4.8, Fable 5) or when adaptive thinking is active it is dropped and warned about once per model. This prevents the agent from crashing on the first model call withTypeError: Messages.create() got an unexpected keyword argument 'temperature'by @philipph-askui in #312 - Unset optional fields are no longer serialized as explicit
nullin content blocks (exclude_none=True), so stricter Anthropic-compatible endpoints (e.g. OpenRouter) no longer reject image requests withcache_control: expected object, received nullby @philipph-askui in #312
⚠️ Breaking Changes
- The
anthropicdependency now requiresanthropic>=1,<2(as do theanthropic[bedrock]andanthropic[vertex]extras) — previously it was capped to<1. Upgrading requires moving theanthropicclient to the 1.x line.
Full Changelog: v0.47.0...v0.48.0