Releases: anthropics/anthropic-sdk-python
Releases Β· anthropics/anthropic-sdk-python
v0.40.0
0.40.0 (2024-11-28)
Full Changelog: v0.39.0...v0.40.0
Features
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
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
Refactors
v0.38.0
0.38.0 (2024-11-01)
Full Changelog: v0.37.1...v0.38.0
Features
Bug Fixes
- count_tokens: correctly set beta header (e5b4b54)
- types: add missing token-counting-2024-11-01 (1897883)
Chores
v0.37.1
v0.37.0
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
Chores
v0.36.2
v0.36.1
v0.36.0
0.36.0 (2024-10-08)
Full Changelog: v0.35.0...v0.36.0
Features
- api: add message batches api (cd1ffcb)
Bug Fixes
Chores
Refactors
v0.35.0
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 oftyping
(#667) (153361d) - pyproject.toml formatting changes (#650) (4c229dc)