Skip to content

Latest commit

 

History

History
693 lines (366 loc) · 49.8 KB

CHANGELOG.md

File metadata and controls

693 lines (366 loc) · 49.8 KB

Changelog

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