Skip to content

Latest commit

 

History

History
1256 lines (671 loc) · 88.2 KB

CHANGELOG.md

File metadata and controls

1256 lines (671 loc) · 88.2 KB

Changelog

0.34.1 (2024-08-19)

Full Changelog: v0.34.0...v0.34.1

Chores

  • ci: add CODEOWNERS file (#639) (33001cc)
  • client: fix parsing union responses when non-json is returned (#643) (45be91d)
  • docs/api: update prompt caching helpers (6a55aee)
  • internal: use different 32bit detection method (#640) (d6b2b63)

0.34.0 (2024-08-14)

Full Changelog: v0.33.1...v0.34.0

Features

  • api: add prompt caching beta (3978411)
  • client: add streaming helpers for prompt caching (98a0a7b)

Chores

0.33.1 (2024-08-12)

Full Changelog: v0.33.0...v0.33.1

Chores

  • ci: bump prism mock server version (#630) (29545ee)
  • internal: ensure package is importable in lint cmd (#632) (d685824)

0.33.0 (2024-08-09)

Full Changelog: v0.32.0...v0.33.0

Features

  • client: add retries_taken to raw response class (43fb587)

Chores

0.32.0 (2024-07-29)

Full Changelog: v0.31.2...v0.32.0

Features

  • add back compat alias for InputJsonDelta (25a5b6c)

Bug Fixes

  • change signatures for the stream function (c9eb11b)
  • client: correctly apply client level timeout for messages (#615) (5f8d88f)

Chores

Refactors

  • extract model out to a named type and rename partialjson (#612) (c53efc7)

0.31.2 (2024-07-17)

Full Changelog: v0.31.1...v0.31.2

Bug Fixes

  • vertex: also refresh auth if there is no token (4a8d02d)
  • vertex: correct request options in retries (460547b)

Chores

  • docs: minor update to formatting of API link in README (#594) (113b6ac)
  • internal: update formatting (#597) (565dfcd)
  • tests: faster bedrock retry tests (4ff067f)

0.31.1 (2024-07-15)

Full Changelog: v0.31.0...v0.31.1

Bug Fixes

  • bedrock: correct request options for retries (#593) (f68c81d)

Chores

  • ci: also run workflows for PRs targeting next (#587) (f7e49f2)
  • internal: minor changes to tests (#591) (fabd591)
  • internal: minor formatting changes (a71927b)
  • internal: minor import restructuring (#588) (1d9db4f)
  • internal: minor options / compat functions updates (#592) (d41a880)
  • internal: update mypy (#584) (0a0edce)

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)

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

0.30.0 (2024-06-26)

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

Features

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)

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)

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)

0.28.1 (2024-06-14)

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

Documentation

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

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)

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)

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)

0.26.1 (2024-05-21)

Full Changelog: v0.26.0...v0.26.1

Chores

0.26.0 (2024-05-16)

Full Changelog: v0.25.9...v0.26.0

Features

  • api: add tool_choice param, image block params inside tool_result.content, and streaming for tool_use blocks (#502) (e0bc274)

Chores

0.25.9 (2024-05-14)

Full Changelog: v0.25.8...v0.25.9

Bug Fixes

Chores

0.25.8 (2024-05-07)

Full Changelog: v0.25.7...v0.25.8

Chores

  • client: log response headers in debug mode (#480) (d1c4d14)
  • internal: add link to openapi spec (#484) (876cd0d)
  • internal: add scripts/test, scripts/mock and add ci job (#486) (6111fe8)
  • internal: bump prism version (#487) (98fb3e6)

Documentation

  • readme: fix misleading timeout example value (#489) (b465bce)

0.25.7 (2024-04-29)

Full Changelog: v0.25.6...v0.25.7

Bug Fixes

Chores

0.25.6 (2024-04-18)

Full Changelog: v0.25.5...v0.25.6

Chores

0.25.5 (2024-04-17)

Full Changelog: v0.25.4...v0.25.5

Chores

0.25.4 (2024-04-17)

Full Changelog: v0.25.3...v0.25.4

Bug Fixes

  • bedrock: correct auth implementation (#462) (2f456f5)

0.25.3 (2024-04-17)

Full Changelog: v0.25.2...v0.25.3

Chores

0.25.2 (2024-04-15)

Full Changelog: v0.25.1...v0.25.2

Chores

0.25.1 (2024-04-11)

Full Changelog: v0.25.0...v0.25.1

Chores

0.25.0 (2024-04-09)

Full Changelog: v0.24.0...v0.25.0

Features

  • bedrock: add copy / with_options to bedrock client (8af7c41)

Chores

0.24.0 (2024-04-09)

Full Changelog: v0.23.1...v0.24.0

Features

  • client: add DefaultHttpxClient and DefaultAsyncHttpxClient (#444) (51d2427)
  • models: add to_dict & to_json helper methods (#446) (6709f58)

0.23.1 (2024-04-04)

Full Changelog: v0.23.0...v0.23.1

Documentation

0.23.0 (2024-04-04)

Full Changelog: v0.22.1...v0.23.0

Features

0.22.1 (2024-04-04)

Full Changelog: v0.22.0...v0.22.1

Bug Fixes

  • types: correctly mark type as a required property in requests (#435) (efc35ec)

Chores

  • types: consistent naming for text block types (#437) (e979fe1)

0.22.0 (2024-04-04)

Full Changelog: v0.21.3...v0.22.0

Features

  • client: increase default HTTP max_connections to 1000 and max_keepalive_connections to 100 (#428) (9a43940)
  • package: export default constants (#423) (0d694e1)

Bug Fixes

  • client: correct logic for line decoding in streaming (#433) (6bf9379)
  • project: use absolute github links on PyPi (#427) (cbd8b1c)
  • revert regression with 3.7 support (#419) (fa21f36)
  • streaming: correct accumulation of output tokens (#426) (b50ed05)

Chores

Documentation

0.21.3 (2024-03-21)

Full Changelog: v0.21.2...v0.21.3

Bug Fixes

  • types: correct typo claude-2.1' to claude-2.1 (#400) (7f82aa3)
  • types: correct typo claude-2.1' to claude-2.1 (#413) (bb1aebe)

0.21.2 (2024-03-21)

Full Changelog: v0.21.1...v0.21.2

Documentation

  • readme: consistent use of sentence case in headings (#405) (495ca87)
  • readme: document how to make undocumented requests (#407) (b046d0d)

0.21.1 (2024-03-20)

Full Changelog: v0.21.0...v0.21.1

Chores

  • internal: loosen input type for util function (#402) (9a6ca55)

0.21.0 (2024-03-19)

Full Changelog: v0.20.0...v0.21.0

Features

  • vertex: api is no longer in private beta (#399) (4cb0e64)

Performance Improvements

Chores

  • internal: update generated pragma comment (#398) (330b61e)

Documentation

0.20.0 (2024-03-13)

Full Changelog: v0.19.2...v0.20.0

Features

Documentation

0.19.2 (2024-03-11)

Full Changelog: v0.19.1...v0.19.2

Bug Fixes

Chores

  • export NOT_GIVEN sentinel value (#379) (ba127bc)
  • internal: improve deserialisation of discriminated unions (#386) (fbc7e0b)
  • internal: support parsing Annotated types (#377) (f44efd5)

0.19.1 (2024-03-06)

Full Changelog: v0.19.0...v0.19.1

Chores

  • internal: add core support for deserializing into number response (#373) (b62c422)

0.19.0 (2024-03-06)

Full Changelog: v0.18.1...v0.19.0

Features

  • api: add enum to model param for message (#371) (f96765f)

Chores

  • client: improve error message for invalid http_client argument (#367) (2f4df72)

Documentation

0.18.1 (2024-03-04)

Full Changelog: v0.18.0...v0.18.1

Chores

0.18.0 (2024-03-04)

Full Changelog: v0.17.0...v0.18.0

Features

Chores

0.17.0 (2024-03-04)

Full Changelog: v0.16.0...v0.17.0

Features

  • messages: add support for image inputs (#359) (579f013)

Chores

Documentation

Refactors

0.16.0 (2024-02-13)

Full Changelog: v0.15.1...v0.16.0

Features

  • api: messages is generally available (#343) (f682594)
  • messages: allow message response in params (#339) (86c63f0)

Documentation

0.15.1 (2024-02-07)

Full Changelog: v0.15.0...v0.15.1

Bug Fixes

  • prevent crash when platform.architecture() is not allowed (#334) (fefb5c1)
  • types: loosen most List params types to Iterable (#338) (6e7761b)

Chores

0.15.0 (2024-02-02)

Full Changelog: v0.14.1...v0.15.0

Features

0.14.1 (2024-02-02)

Full Changelog: v0.14.0...v0.14.1

Chores

  • interal: make link to api.md relative (#330) (e393317)

0.14.0 (2024-01-31)

Full Changelog: v0.13.0...v0.14.0

Features

0.13.0 (2024-01-30)

Full Changelog: v0.12.0...v0.13.0

Features

  • client: support parsing custom response types (#325) (416633f)

Chores

  • internal: cast type in mocked test (#326) (fd22d8e)
  • internal: enable ruff type checking misuse lint rule (#324) (6587598)
  • internal: support multipart data with overlapping keys (#322) (9ecab60)
  • internal: support pre-release versioning (#327) (78b1bfe)

0.12.0 (2024-01-25)

Full Changelog: v0.11.0...v0.12.0

Features

  • client: enable follow redirects by default (#320) (9959c32)

0.11.0 (2024-01-23)

Full Changelog: v0.10.0...v0.11.0

Features

  • vertex: add support for google vertex (#319) (5324415)

Chores

0.10.0 (2024-01-18)

Full Changelog: v0.9.0...v0.10.0

Features

  • client: add support for streaming raw responses (#307) (f295982)

Bug Fixes

  • ci: ignore stainless-app edits to release PR title (#315) (69e8b03)

Chores

  • add write_to_file binary helper method (#309) (8ac7988)
  • client: improve debug logging for failed requests (#303) (5e58c25)
  • internal: fix typing util function (#310) (3671aa6)
  • internal: remove redundant client test (#311) (d7140f7)
  • internal: share client instances between all tests (#314) (ccf731b)
  • internal: speculative retry-after-ms support (#312) (4b27da9)
  • internal: updates to proxy helper (#308) (a0b3cdb)
  • lazy load raw resource class properties (#313) (b13f824)

Documentation

0.9.0 (2024-01-08)

Full Changelog: v0.8.1...v0.9.0

Features

  • add None default value to nullable response properties (#299) (da423db)

Bug Fixes

  • client: correctly use custom http client auth (#296) (6289d6e)

Chores

  • add .keep files for examples and custom code directories (#302) (73a07ea)
  • internal: loosen type var restrictions (#301) (5e5e1e7)
  • internal: replace isort with ruff (#298) (7c60904)
  • use property declarations for resource members (#300) (8671297)

0.8.1 (2023-12-22)

Full Changelog: v0.8.0...v0.8.1

Chores

Documentation

  • messages: improvements to helpers reference + typos (#291) (d18a895)
  • readme: remove old migration guide (#289) (eec4574)

0.8.0 (2023-12-19)

Full Changelog: v0.7.8...v0.8.0

Features

  • api: add messages endpoint with streaming helpers (#286) (c464b87)

Chores

  • ci: run release workflow once per day (#282) (3a23912)
  • client: only import tokenizers when needed (#284) (b9e38b2)
  • streaming: update constructor to use direct client names (#285) (0c55c84)

0.7.8 (2023-12-12)

Full Changelog: v0.7.7...v0.7.8

Bug Fixes

  • avoid leaking memory when Client.with_options is used (#275) (5e51ebd)
  • client: correct base_url setter implementation (#265) (29d0c8b)
  • client: ensure retried requests are closed (#261) (5d9aa75)
  • errors: properly assign APIError.body (#274) (342846f)

Chores

Documentation

Refactors

0.7.7 (2023-11-29)

Full Changelog: v0.7.6...v0.7.7

Chores

0.7.6 (2023-11-28)

Full Changelog: v0.7.5...v0.7.6

Chores

0.7.5 (2023-11-24)

Full Changelog: v0.7.4...v0.7.5

Chores

  • internal: revert recent options change (#252) (d60d5c3)
  • internal: send more detailed x-stainless headers (#254) (a268d4b)

0.7.4 (2023-11-23)

Full Changelog: v0.7.3...v0.7.4

Chores

0.7.3 (2023-11-21)

Full Changelog: v0.7.2...v0.7.3

Bug Fixes

  • client: attempt to parse unknown json content types (#243) (9fc275f)

Chores

0.7.2 (2023-11-17)

Full Changelog: v0.7.1...v0.7.2

Chores

  • internal: update type hint for helper function (#241) (3179104)

0.7.1 (2023-11-16)

Full Changelog: v0.7.0...v0.7.1

Documentation

0.7.0 (2023-11-15)

Full Changelog: v0.6.0...v0.7.0

Features

  • client: support reading the base url from an env variable (#237) (dd91bfd)

Bug Fixes

  • client: correctly flush the stream response body (#230) (a60d543)
  • client: retry if SSLWantReadError occurs in the async client (#233) (33b553a)
  • client: serialise pydantic v1 default fields correctly in params (#232) (d5e70e8)
  • models: mark unknown fields as set in pydantic v1 (#231) (4ce7a1e)

Chores

  • internal: fix devcontainer interpeter path (#235) (7f92e25)
  • internal: fix typo in NotGiven docstring (#234) (ce5cccc)

Documentation

0.6.0 (2023-11-08)

Full Changelog: v0.5.1...v0.6.0

Features

  • client: adjust retry behavior to be exponential backoff (#205) (c8a4119)
  • client: allow binary returns (#217) (159ddd6)
  • client: improve file upload types (#204) (d85d1e0)
  • client: support accessing raw response objects (#211) (ebe8e4a)
  • client: support passing BaseModels to request params at runtime (#218) (9f04ea6)
  • client: support passing chunk size for binary responses (#227) (c88f01e)
  • client: support passing httpx.Timeout to method timeout argument (#222) (ef58166)
  • github: include a devcontainer setup (#216) (c9fee19)
  • package: add classifiers (#214) (380967e)

Bug Fixes

  • binaries: don't synchronously block in astream_to_file (#219) (2a2a617)
  • prevent TypeError in Python 3.8 (ABC is not subscriptable) (#221) (893e885)

Chores

Documentation

0.5.1 (2023-10-20)

Full Changelog: v0.5.0...v0.5.1

Chores

0.5.0 (2023-10-18)

Full Changelog: v0.4.1...v0.5.0

Features

  • client: support passing httpx.URL instances to base_url (#197) (fe61308)

Chores

0.4.1 (2023-10-16)

Full Changelog: v0.4.0...v0.4.1

Bug Fixes

  • client: accept io.IOBase instances in file params (#190) (5da5f0c)
  • streaming: add additional overload for ambiguous stream param (#185) (794dc4d)

Chores

Documentation

  • organisation -> organization (UK to US English) (#192) (901a330)

0.4.0 (2023-10-13)

Full Changelog: v0.3.14...v0.4.0

Features

Bug Fixes

  • client: correctly handle arguments with env vars (#178) (91a0e2a)

Chores

Documentation

Refactors

0.3.14 (2023-10-11)

Full Changelog: v0.3.13...v0.3.14

Features

  • client: add forwards-compatible pydantic methods (#171) (4c5289e)
  • client: add support for passing in a httpx client (#173) (25046c4)
  • client: handle retry-after header with a date format (#168) (afeabf1)
  • client: retry on 408 Request Timeout (#155) (46386f8)
  • package: export a root error type (#163) (e7aa3e7)
  • types: improve params type names (#160) (43544a6)

Bug Fixes

  • client: don't error by default for unexpected content types (#161) (76cfcf9)
  • client: properly configure model set fields (#154) (da6ccb1)

Chores

  • internal: add helpers (#156) (00f5a19)
  • internal: move error classes from _base_exceptions to _exceptions (⚠️ breaking) (#162) (329b307)
  • tests: improve raw response test (#166) (8042473)

Documentation

0.3.13 (2023-09-11)

Full Changelog: v0.3.12...v0.3.13

Features

  • types: de-duplicate nested streaming params types (#141) (f76f053)

Bug Fixes

  • client: properly handle optional file params (#142) (11196b7)

Chores

Documentation

0.3.12 (2023-08-29)

Full Changelog: v0.3.11...v0.3.12

Chores

  • ci: setup workflows to create releases and release PRs (#130) (8f1048b)
  • internal: use shared params references (#133) (feaf6aa)

0.3.11 (2023-08-26)

Documentation

  • readme: make print statements in streaming examples flush (#123) (d24dfaf)

Chores

0.3.10 (2023-08-16)

Features

Chores

0.3.9 (2023-08-12)

Features

  • docs: remove extraneous space in examples (#109) (6d5c1f7)

Bug Fixes

  • docs: correct async imports (1ea1bf3)

Documentation

  • readme: remove beta status + document versioning policy (#102) (2f0a0f9)

Chores

0.3.8 (2023-08-01)

Features

  • client: add constants to client instances as well (#95) (d0fbe33)

Chores

  • internal: bump pyright (#94) (d2872dc)
  • internal: make demo example runnable and more portable (#92) (dea1aa2)

Documentation

  • readme: add token counting reference (#96) (79a339e)

0.3.7 (2023-07-29)

Features

  • client: add client close handlers (#89) (2520a03)

Bug Fixes

  • client: correctly handle environment variable access (aa53754)

Documentation

  • readme: use client everywhere for consistency (0ff8924)

Chores

  • internal: minor refactoring of client instantiation (adf9158)
  • internal: minor reformatting of code (#90) (1175572)

0.3.6 (2023-07-22)

Documentation

  • readme: reference "client" in errors section and add missing import (#79) (ddc81cf)

0.3.5 (2023-07-19)

Features

  • add flexible enum to model param (#75) (d16bb45)

Documentation

  • examples: bump model to claude-2 in example scripts (#67) (cd68de2)

Chores

  • internal: add codegen.log to .gitignore (#72) (d9b7e30)

0.3.4 (2023-07-11)

Chores

  • package: pin major versions of dependencies (#59) (3a75464)

Documentation