Skip to content

Releases: anthropics/anthropic-sdk-python

v0.31.0

10 Jul 14:28
Compare
Choose a tag to compare

0.31.0 (2024-07-10)

Full Changelog: v0.30.1...v0.31.0

Features

  • client: make request-id header more accessible (#581) (130d470)
  • vertex: add copy and with_options (#578) (fcd425f)

Bug Fixes

  • client: always respect content-type multipart/form-data if provided (#574) (6051763)
  • streaming/messages: more robust event type construction (#576) (98e2075)
  • types: allow arbitrary types in image block param (#582) (ebd6590)
  • Updated doc typo (17be06b)
  • vertex: avoid credentials refresh on every request (#575) (37bd433)

Chores

  • ci: update rye to v0.35.0 (#577) (e271d69)
  • internal: add helper method for constructing BaseModels (#572) (8e626ac)
  • internal: fix formatting (a912917)
  • internal: minor request options handling changes (#580) (d1dcf42)

v0.30.1

02 Jul 01:53
Compare
Choose a tag to compare

0.30.1 (2024-07-01)

Full Changelog: v0.30.0...v0.30.1

Bug Fixes

  • build: include more files in sdist builds (#559) (9170d08)

Chores

v0.30.0

26 Jun 18:14
Compare
Choose a tag to compare

0.30.0 (2024-06-26)

Full Changelog: v0.29.2...v0.30.0

Features

v0.29.2

26 Jun 15:54
Compare
Choose a tag to compare

0.29.2 (2024-06-26)

Full Changelog: v0.29.1...v0.29.2

Bug Fixes

  • temporarily patch upstream version to fix broken release flow (#555) (5471710)

v0.29.1

25 Jun 20:12
Compare
Choose a tag to compare

0.29.1 (2024-06-25)

Full Changelog: v0.29.0...v0.29.1

Bug Fixes

  • api: add string to tool result block (#554) (f283b4e)
  • docs: fix link to advanced python httpx docs (#550) (474ff7c)

v0.29.0

20 Jun 13:55
Compare
Choose a tag to compare

0.29.0 (2024-06-20)

Full Changelog: v0.28.1...v0.29.0

Features

  • api: add new claude-3-5-sonnet-20240620 model (#545) (5ea6b18)

Bug Fixes

  • client/async: avoid blocking io call for platform headers (#544) (3c2b75f)

Chores

  • internal: add a default_query method (#540) (0253ebc)

v0.28.1

14 Jun 18:06
Compare
Choose a tag to compare

0.28.1 (2024-06-14)

Full Changelog: v0.28.0...v0.28.1

Documentation

  • readme: tool use is no longer in beta (d2be3c0)

v0.28.0

30 May 17:29
Compare
Choose a tag to compare

0.28.0 (2024-05-30)

Full Changelog: v0.27.0...v0.28.0

⚠ BREAKING CHANGES

  • streaming: remove old event_handler API (#532)

Refactors

  • streaming: remove old event_handler API (#532) (d9acfd4)

v0.27.0

30 May 15:48
Compare
Choose a tag to compare

0.27.0 (2024-05-30)

Full Changelog: v0.26.2...v0.27.0

Features

  • api: tool use is GA and available on 3P (#530) (ad7adbd)
  • streaming/messages: refactor to event iterator structure (997af69)
  • streaming/tools: refactor to event iterator structure (bdcc283)
  • streaming: add tools support (9f00950)

Bug Fixes

  • beta: streaming breakage due to breaking change in dependency (afe3c87)

Chores

  • add missing all definitions (#526) (5021787)
  • examples: update tools (56edecc)
  • formatting: misc fixups (fbad5a0)
  • internal: fix lint issues in tests (d857640)
  • internal: update bootstrap script (#527) (93ae152)
  • internal: update some references to rye-up.com (00e34e7)
  • tests: ensure messages.create() and messages.stream() stay in sync (52bd67b)

Documentation

  • helpers: mention input json event (02d482c)
  • helpers: update for new event iterator (26f9533)

Refactors

  • api: add Raw prefix to API stream event type names (#529) (bb62980)

v0.26.2

27 May 20:17
Compare
Choose a tag to compare

0.26.2 (2024-05-27)

Full Changelog: v0.26.1...v0.26.2

Bug Fixes

  • vertex: don't error if project_id couldn't be loaded if it was already explicitly given (#513) (e7159d8)

Chores

  • ci: update rye install location (#516) (a6e347a)
  • ci: update rye install location (#518) (5122420)
  • internal: bump pyright (196e4b0)
  • internal: remove unused __events stream property (472b831)
  • internal: restructure streaming implementation to use composition (b1a1c03)
  • messages: add back-compat for isinstance() checks (7794bcb)
  • tests: fix lints (#521) (d96fc53)

Documentation

  • contributing: update references to rye-up.com (6486898)