Skip to content

Releases: anthropics/anthropic-sdk-python

v0.42.0

17 Dec 20:41
Compare
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
Compare
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)

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