Skip to content

Releases: anthropics/anthropic-sdk-python

v0.47.0

24 Feb 18:06

Choose a tag to compare

0.47.0 (2025-02-24)

Full Changelog: v0.46.0...v0.47.0

Features

  • api: add claude-3.7 + support for thinking (c5387e6)
  • client: add more status exceptions (#854) (00d9512)
  • client: allow passing NotGiven for body (#868) (8ab445e)

Bug Fixes

  • client: mark some request bodies as optional (8ab445e)

Chores

v0.46.0

18 Feb 20:34

Choose a tag to compare

0.46.0 (2025-02-18)

Full Changelog: v0.45.2...v0.46.0

Features

  • client: send X-Stainless-Read-Timeout header (#858) (0e75983)
  • jsonl: add .close() method (#862) (137335c)
  • pagination: avoid fetching when has_more: false (#860) (0cdb81d)

Bug Fixes

Chores

  • api: update openapi spec url (#852) (461d821)
  • internal: bummp ruff dependency (#856) (590c3fa)
  • internal: change default timeout to an int (#855) (3152e1a)
  • internal: fix tests (fc41ba2)
  • internal: fix type traversing dictionary params (#859) (c5b700d)
  • internal: reorder model constants (#847) (aadd531)
  • internal: update models used in tests (aadd531)

v0.45.2

27 Jan 22:01

Choose a tag to compare

0.45.2 (2025-01-27)

Full Changelog: v0.45.1...v0.45.2

Bug Fixes

  • streaming: avoid invalid deser type error (#845) (72a2585)

v0.45.1

27 Jan 16:17

Choose a tag to compare

0.45.1 (2025-01-27)

Full Changelog: v0.45.0...v0.45.1

Bug Fixes

Chores

v0.45.0

23 Jan 16:53

Choose a tag to compare

0.45.0 (2025-01-23)

Full Changelog: v0.44.0...v0.45.0

Features

Chores

v0.44.0

21 Jan 16:53

Choose a tag to compare

0.44.0 (2025-01-21)

Full Changelog: v0.43.1...v0.44.0

Features

Bug Fixes

  • tests: make test_get_platform less flaky (#830) (f2c10ca)

Chores

  • deprecate more models (c647e25)
  • internal: avoid pytest-asyncio deprecation warning (#832) (2b3ceff)
  • internal: minor style changes (#833) (65cfb7b)

Documentation

v0.43.1

17 Jan 19:48

Choose a tag to compare

0.43.1 (2025-01-17)

Full Changelog: v0.43.0...v0.43.1

Bug Fixes

  • docs: correct results return type (69ad511)

Chores

  • internal: bump pyright dependency (#822) (f8ddb90)
  • internal: fix lint (483cc27)
  • streaming: add runtime type check for better error messages (#826) (cf69e09)
  • types: add more discriminator metadata (#825) (d0de8e5)

v0.43.0

14 Jan 19:07

Choose a tag to compare

0.43.0 (2025-01-14)

Full Changelog: v0.42.0...v0.43.0

Features

  • api: add message batch delete endpoint (#802) (9cf1e99)
  • beta: add streaming helpers for beta messages (#819) (d913ba3)

Bug Fixes

  • client: only call .close() when needed (#811) (21e0eb3)
  • correctly handle deserialising cls fields (#817) (60e56a5)
  • types: allow extra properties in input schemas (d0961c2)

Chores

Documentation

Refactors

  • stream: make MessageStream wrap Stream directly (#805) (5669399)
  • vertex: remove deprecated HTTP client options (#808) (3f4eada)

v0.42.0

17 Dec 20:41

Choose a tag to compare

0.42.0 (2024-12-17)

Full Changelog: v0.41.0...v0.42.0

Features

Bug Fixes

  • vertex: remove anthropic_version deletion for token counting (f613929)

Chores

v0.41.0

17 Dec 15:52

Choose a tag to compare

0.41.0 (2024-12-17)

Full Changelog: v0.40.0...v0.41.0

Features

  • api: general availability updates (5db8538)
  • api: general availability updates (#795) (c8d5e43)
  • vertex: support token counting (6c3eded)

Bug Fixes

  • internal: correct support for TypeAliasType (2f6ba9e)

Chores

Documentation

  • readme: example snippet for client context manager (#791) (d0a5f0c)
  • readme: fix http client proxies example (#778) (df1a549)
  • use latest sonnet in example snippets (#781) (1ad9e4f)