pypi anthropic 1.7.0
v1.7.0

4 hours ago

1.7.0 (2026-09-18)

Full Changelog: v1.6.0...v1.7.0

Features

  • api: add group with display_name to rate limits, deprecate group_type (28f0a83)
  • tools: add compact_before_next_turn() to the tool runner (#641) (8b23fb3)

Bug Fixes

  • bedrock: raise an API error for eventstream exception and error frames (#769) (8ec9cc9)
  • client: accept X | Y union types when parsing responses (b366fa5)
  • client: don't raise TypeError for X | Y fields with unknown data (30ebd69)
  • client: join multiple anthropic-beta values with a comma and no space (#781) (1680324)
  • tools: tidy compact_before_next_turn() state and failure handling (#804) (d3a9fc8)

Chores

  • deps: require pydantic 1.10 or later (91931e1)
  • docs: add descriptions for enum values and path parameters (99184dc)
  • docs: clarify the compaction tool_changes and tool change descriptions (eacc0ff)
  • internal: add more unnecessary cast comments (9e6ce27)
  • internal: pass strict= to zip() in the MCP tool helpers (13cfe64)
  • internal: remove an unused noqa comment from the model tests (2c18298)
  • internal: set ruff's target version to Python 3.10 (2bdfd41)

Don't miss a new anthropic release

NewReleases is sending notifications on new releases.