Skip to content

v0.48.0

Latest

Choose a tag to compare

@philipph-askui philipph-askui released this 14 Oct 16:26
· 1 commit to main since this release
a9d4dc4

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, replacing claude-sonnet-5 by @philipph-askui in #318

🐛 Bug Fixes

  • Made the SDK compatible with the anthropic 1.x client — temperature is 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 via extra_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 with TypeError: Messages.create() got an unexpected keyword argument 'temperature' by @philipph-askui in #312
  • Unset optional fields are no longer serialized as explicit null in content blocks (exclude_none=True), so stricter Anthropic-compatible endpoints (e.g. OpenRouter) no longer reject image requests with cache_control: expected object, received null by @philipph-askui in #312

⚠️ Breaking Changes

  • The anthropic dependency now requires anthropic>=1,<2 (as do the anthropic[bedrock] and anthropic[vertex] extras) — previously it was capped to <1. Upgrading requires moving the anthropic client to the 1.x line.

Full Changelog: v0.47.0...v0.48.0