Skip to content

Releases: anthropics/anthropic-sdk-python

v0.40.0

28 Nov 16:29
Compare
Choose a tag to compare

0.40.0 (2024-11-28)

Full Changelog: v0.39.0...v0.40.0

Features

  • client: add ._request_id property to object responses (#743) (9fb64a6)

Bug Fixes

  • asyncify: avoid hanging process under certain conditions (#756) (c71bba2)
  • bedrock: correct URL encoding for model params (#759) (be4e73a)
  • client: compat with new httpx 0.28.0 release (#765) (de51f60)
  • don't use dicts as iterables in transform (#750) (1f71464)
  • types: remove anthropic-instant-1.2 model (#744) (23637de)

Chores

  • api: update spec version (#751) (4ec986c)
  • ci: remove unneeded workflow (#742) (472b7d3)
  • internal: exclude mypy from running on tests (#764) (bce763a)
  • internal: fix compat model_dump method when warnings are passed (#760) (0e09236)
  • internal: minor formatting changes (493020e)
  • remove now unused cached-property dep (#762) (b9ffefe)
  • tests: adjust retry timeout values (#736) (27ed781)
  • tests: limit array example length (#754) (6cab2b9)

Documentation

v0.39.0

04 Nov 18:24
Compare
Choose a tag to compare

0.39.0 (2024-11-04)

Full Changelog: v0.38.0...v0.39.0

⚠ BREAKING CHANGES

  • client: remove legacy client.count_tokens() method (#726)

Features

Bug Fixes

  • don't use dicts as iterables in transform (#724) (62bb863)
  • support json safe serialization for basemodel subclasses (#727) (5be855e)
  • types: add missing token-counting-2024-11-01 (#722) (c549736)

Documentation

  • readme: mention new token counting endpoint (#728) (72a4636)

Refactors

  • client: remove legacy client.count_tokens() method (#726) (14e4244)

v0.38.0

01 Nov 15:41
Compare
Choose a tag to compare

0.38.0 (2024-11-01)

Full Changelog: v0.37.1...v0.38.0

Features

  • api: add message token counting & PDFs support (#721) (e4856dd)

Bug Fixes

  • count_tokens: correctly set beta header (e5b4b54)
  • types: add missing token-counting-2024-11-01 (1897883)

Chores

  • internal: bump mypy (#720) (fe8d19e)
  • internal: bump pytest to v8 & pydantic (#716) (00fe1f8)
  • internal: update spec version (#712) (f71b0f5)
  • tests: move lazy tokenizer test outside of pytest (d8f2402)

v0.37.1

22 Oct 19:14
Compare
Choose a tag to compare

0.37.1 (2024-10-22)

Full Changelog: v0.37.0...v0.37.1

Bug Fixes

  • bedrock: correct handling of messages beta (#711) (4cba32b)
  • vertex: use correct beta url (b76db5c)

v0.37.0

22 Oct 15:00
Compare
Choose a tag to compare

0.37.0 (2024-10-22)

Full Changelog: v0.36.2...v0.37.0

Features

  • api: add new model and computer-use-2024-10-22 beta (dd93d87)
  • bedrock: add messages beta (2566c93)
  • vertex: add messages beta (0d1f1a6)

Bug Fixes

  • client/async: correctly retry in all cases (#704) (ee6febc)

Chores

v0.36.2

17 Oct 18:43
Compare
Choose a tag to compare

0.36.2 (2024-10-17)

Full Changelog: v0.36.1...v0.36.2

Bug Fixes

  • types: remove misleading betas TypedDict property for the Batch API (#697) (e1b9e31)

Chores

v0.36.1

15 Oct 18:41
Compare
Choose a tag to compare

0.36.1 (2024-10-15)

Full Changelog: v0.36.0...v0.36.1

Bug Fixes

  • allow header params to override default headers (#690) (56f195f)
  • beta: merge betas param with the default value (#695) (f52eac9)

Chores

v0.36.0

08 Oct 15:48
Compare
Choose a tag to compare

0.36.0 (2024-10-08)

Full Changelog: v0.35.0...v0.36.0

Features

  • api: add message batches api (cd1ffcb)

Bug Fixes

  • client: avoid OverflowError with very large retry counts (#676) (93d6eeb)

Chores

Refactors

v0.35.0

04 Oct 15:41
Compare
Choose a tag to compare

0.35.0 (2024-10-04)

Full Changelog: v0.34.2...v0.35.0

Features

  • api: support disabling parallel tool use (#674) (9079a99)
  • bedrock: add profile argument to client (#648) (6ea5fce)
  • client: allow overriding retry count header (#670) (1fb081f)
  • client: send retry count header (#664) (17c26d5)

Bug Fixes

  • client: handle domains with underscores (#663) (84ad451)
  • types: correctly mark stream discriminator as optional (#657) (2386f98)

Chores

  • add docstrings to raw response properties (#654) (35e6cf7)
  • internal: add support for parsing bool response content (#675) (0bbc0a3)
  • internal: bump pyright / mypy version (#662) (c03a71f)
  • internal: bump ruff (#660) (0a34018)
  • internal: update pydantic v1 compat helpers (#666) (ee8e2bd)
  • internal: use typing_extensions.overload instead of typing (#667) (153361d)
  • pyproject.toml formatting changes (#650) (4c229dc)

Documentation

  • fix typo in fenced code block language (#673) (a03414e)
  • improve and reference contributing documentation (#672) (5bd9690)
  • readme: add section on determining installed version (#655) (5898f42)
  • update CONTRIBUTING.md (#659) (2df25bf)

v0.34.2

04 Sep 17:55
Compare
Choose a tag to compare

0.34.2 (2024-09-04)

Full Changelog: v0.34.1...v0.34.2

Chores