Full Changelog: v1.42.0...v1.43.0
Full Changelog: v1.41.1...v1.42.0
Full Changelog: v1.41.0...v1.41.1
Full Changelog: v1.40.8...v1.41.0
- client: add uploads.upload_file helper (aae079d)
Full Changelog: v1.40.7...v1.40.8
Full Changelog: v1.40.6...v1.40.7
- docs: fix typo in example snippet (4e83b57)
- internal: use different 32bit detection method (#1652) (5831af6)
Full Changelog: v1.40.5...v1.40.6
- examples: minor formatting changes (#1644) (e08acf1)
- internal: update some imports (#1642) (fce1ea7)
- sync openapi url (#1646) (8ae3801)
- tests: fix pydantic v1 tests (2623630)
Full Changelog: v1.40.4...v1.40.5
Full Changelog: v1.40.3...v1.40.4
- json schema: unravel
$ref
s alongside additional keys (c7a3d29) - json schema: unwrap
allOf
s with one entry (53d964d)
Full Changelog: v1.40.2...v1.40.3
- ci: bump prism mock server version (#1630) (214d8fd)
- ci: codeowners file (#1627) (c059a20)
- internal: ensure package is importable in lint cmd (#1631) (779e6d0)
Full Changelog: v1.40.1...v1.40.2
- client: raise helpful error message for response_format misuse (18191da)
- json schema: support recursive BaseModels in Pydantic v1 (#1623) (43e10c0)
Full Changelog: v1.40.0...v1.40.1
Full Changelog: v1.39.0...v1.40.0
- api: add structured outputs support (e8dba7d)
- internal: bump ruff version (#1604) (3e19a87)
- internal: update pydantic compat helper function (#1607) (973c18b)
Full Changelog: v1.38.0...v1.39.0
- assistants: add parallel_tool_calls param to runs.stream (113e82a)
- internal: bump pyright (#1599) (27f0f10)
- internal: test updates (#1602) (af22d80)
- internal: use
TypeAlias
marker for type assignments (#1597) (5907ea0)
Full Changelog: v1.37.2...v1.38.0
- extract out
ImageModel
,AudioModel
,SpeechModel
(#1586) (b800316) - make enums not nominal (#1588) (ab4519b)
Full Changelog: v1.37.1...v1.37.2
- internal: add type construction helper (#1584) (cbb186a)
- runs/create_and_poll: add parallel_tool_calls request param (04b3e6c)
Full Changelog: v1.37.0...v1.37.1
Full Changelog: v1.36.1...v1.37.0
Full Changelog: v1.36.0...v1.36.1
- types: add gpt-4o-mini to more assistants methods (39a8a37)
Full Changelog: v1.35.15...v1.36.0
Full Changelog: v1.35.14...v1.35.15
- docs: document how to do per-request http client customization (#1560) (24c0768)
- internal: update formatting (#1553) (e1389bc)
Full Changelog: v1.35.13...v1.35.14
- docs: minor update to formatting of API link in README (#1550) (a6e59c6)
- internal: minor formatting changes (ee1c62e)
- internal: minor options / compat functions updates (#1549) (a0701b5)
Full Changelog: v1.35.12...v1.35.13
- threads/runs/create_and_run_stream: correct tool_resources param (8effd08)
Full Changelog: v1.35.11...v1.35.12
- azure: refresh auth token during retries (#1533) (287926e)
- tests: fresh_env() now resets new environment values (64da888)
Full Changelog: v1.35.10...v1.35.11
Full Changelog: v1.35.9...v1.35.10
Full Changelog: v1.35.8...v1.35.9
Full Changelog: v1.35.7...v1.35.8
- gitignore test server logs (#1509) (936d840)
- internal: add helper method for constructing
BaseModel
s (#1517) (e5ddbf5) - internal: add reflection helper function (#1508) (6044e1b)
- internal: add rich as a dev dependency (#1514) (8a2b4e4)
Full Changelog: v1.35.6...v1.35.7
Full Changelog: v1.35.5...v1.35.6
Full Changelog: v1.35.4...v1.35.5
- cli/migrate: avoid reliance on Python 3.12 argument (be7a06b)
Full Changelog: v1.35.3...v1.35.4
- docs: fix link to advanced python httpx docs (#1499) (cf45cd5)
- temporarily patch upstream version to fix broken release flow (#1500) (4f10470)
Full Changelog: v1.35.2...v1.35.3
- tests: add explicit type annotation (9345f10)
Full Changelog: v1.35.1...v1.35.2
- api: add missing parallel_tool_calls arguments (4041e4f)
Full Changelog: v1.35.0...v1.35.1
Full Changelog: v1.34.0...v1.35.0
Full Changelog: v1.33.0...v1.34.0
Full Changelog: v1.32.1...v1.33.0
Full Changelog: v1.32.0...v1.32.1
Full Changelog: v1.31.2...v1.32.0
Full Changelog: v1.31.1...v1.31.2
Full Changelog: v1.31.0...v1.31.1
Full Changelog: v1.30.5...v1.31.0
- fix lint (1886dd4)
Full Changelog: v1.30.4...v1.30.5
- internal: fix lint issue (35a1e80)
Full Changelog: v1.30.3...v1.30.4
Full Changelog: v1.30.2...v1.30.3
- ci: update rye install location (#1440) (8a0e5bf)
- internal: bump pyright (#1442) (64a151e)
- internal: fix lint issue (#1444) (b0eb458)
- contributing: update references to rye-up.com (dcc34a2)
Full Changelog: v1.30.1...v1.30.2
Full Changelog: v1.30.0...v1.30.1
Full Changelog: v1.29.0...v1.30.0
Full Changelog: v1.28.2...v1.29.0
Full Changelog: v1.28.1...v1.28.2
Full Changelog: v1.28.0...v1.28.1
Full Changelog: v1.27.0...v1.28.0
Full Changelog: v1.26.0...v1.27.0
Full Changelog: v1.25.2...v1.26.0
Full Changelog: v1.25.1...v1.25.2
Full Changelog: v1.25.0...v1.25.1
Full Changelog: v1.24.1...v1.25.0
Full Changelog: v1.24.0...v1.24.1
Full Changelog: v1.23.6...v1.24.0
- client: log response headers in debug mode (#1383) (f31a426)
- internal: minor reformatting (#1377) (7003dbb)
- internal: reformat imports (#1375) (2ad0c3b)
Full Changelog: v1.23.5...v1.23.6
Full Changelog: v1.23.4...v1.23.5
Full Changelog: v1.23.3...v1.23.4
Full Changelog: v1.23.2...v1.23.3
Full Changelog: v1.23.1...v1.23.2
Full Changelog: v1.23.0...v1.23.1
Full Changelog: v1.22.0...v1.23.0
Full Changelog: v1.21.2...v1.22.0
- internal: ban usage of lru_cache (#1331) (8f9223b)
- internal: bump pyright to 1.1.359 (#1337) (feec0dd)
Full Changelog: v1.21.1...v1.21.2
Full Changelog: v1.21.0...v1.21.1
Full Changelog: v1.20.0...v1.21.0
Full Changelog: v1.19.0...v1.20.0
- client: add header OpenAI-Project (#1320) (0c489f1)
- extract chat models to a named enum (#1322) (1ccd9b6)
Full Changelog: v1.18.0...v1.19.0
Full Changelog: v1.17.1...v1.18.0
Full Changelog: v1.17.0...v1.17.1
Full Changelog: v1.16.2...v1.17.0
- api: add additional messages when creating thread run (#1298) (70eb081)
- client: add DefaultHttpxClient and DefaultAsyncHttpxClient (#1302) (69cdfc3)
- models: add to_dict & to_json helper methods (#1305) (40a881d)
Full Changelog: v1.16.1...v1.16.2
Full Changelog: v1.16.0...v1.16.1
Full Changelog: v1.15.0...v1.16.0
- api: add support for filtering messages by run_id (#1288) (58d6b77)
- api: run polling helpers (#1289) (6b427f3)
- rename createAndStream to stream (6b427f3)
Full Changelog: v1.14.3...v1.15.0
- api: adding temperature parameter (#1282) (0e68fd3)
- client: increase default HTTP max_connections to 1000 and max_keepalive_connections to 100 (#1281) (340d139)
- package: export default constants (#1275) (fdc126e)
Full Changelog: v1.14.2...v1.14.3
- internal: construct error properties instead of using the raw response (#1257) (11dce5c)
- internal: formatting change (#1258) (b907dd7)
- internal: loosen input type for util function (#1250) (fc8b4c3)
- contributing: fix typo (#1264) (835cb9b)
- readme: consistent use of sentence case in headings (#1255) (519f371)
- readme: document how to make undocumented requests (#1256) (5887858)
Full Changelog: v1.14.1...v1.14.2
Full Changelog: v1.14.0...v1.14.1
Full Changelog: v1.13.4...v1.14.0
Full Changelog: v1.13.3...v1.13.4
- api: update docs (#1212) (71236e0)
- client: improve error message for invalid http_client argument (#1216) (d0c928a)
- docs: mention install from git repo (#1203) (3ab6f44)
- export NOT_GIVEN sentinel value (#1223) (8a4f76f)
- internal: add core support for deserializing into number response (#1219) (004bc92)
- internal: bump pyright (#1221) (3c2e815)
- internal: improve deserialisation of discriminated unions (#1227) (4767259)
- internal: minor core client restructuring (#1199) (4314cdc)
- internal: split up transforms into sync / async (#1210) (7853a83)
- internal: support more input types (#1211) (d0e4baa)
- internal: support parsing Annotated types (#1222) (8598f81)
- types: include discriminators in unions (#1228) (3ba0dcc)
Full Changelog: v1.13.2...v1.13.3
- client: use anyio.sleep instead of asyncio.sleep (#1198) (b6d025b)
- internal: bump pyright (#1193) (9202e04)
- types: extract run status to a named type (#1178) (249ecbd)
- add note in azure_deployment docstring (#1188) (96fa995)
- examples: add pyaudio streaming example (#1194) (3683c5e)
Full Changelog: v1.13.1...v1.13.2
Full Changelog: v1.13.0...v1.13.1
Full Changelog: v1.12.0...v1.13.0
- ci: move github release logic to github app (#1155) (67cfac2)
- client: use correct accept headers for binary data (#1161) (e536437)
- internal: refactor release environment script (#1158) (7fe8ec3)
Full Changelog: v1.11.1...v1.12.0
- api: add
timestamp_granularities
, addgpt-3.5-turbo-0125
model (#1125) (1ecf8f6) - cli/images: add support for
--model
arg (#1132) (0d53866)
- remove double brackets from timestamp_granularities param (#1140) (3db0222)
- types: loosen most List params types to Iterable (#1129) (bdb31a3)
- internal: add lint command (#1128) (4c021c0)
- internal: support serialising iterable types (#1127) (98d4e59)
Full Changelog: v1.11.0...v1.11.1
Full Changelog: v1.10.0...v1.11.0
- interal: make link to api.md relative (#1117) (4a10879)
- internal: cast type in mocked test (#1112) (99b21e1)
- internal: enable ruff type checking misuse lint rule (#1106) (fa63e60)
- internal: support multipart data with overlapping keys (#1104) (455bc9f)
- internal: support pre-release versioning (#1113) (dea5b08)
Full Changelog: v1.9.0...v1.10.0
- api: add text embeddings dimensions param (#1103) (94abfa0)
- azure: proactively add audio/speech to deployment endpoints (#1099) (fdf8742)
- client: enable follow redirects by default (#1100) (d325b7c)
Full Changelog: v1.8.0...v1.9.0
- internal: fix typing util function (#1083) (3e60db6)
- internal: remove redundant client test (#1085) (947974f)
- internal: share client instances between all tests (#1088) (05cd753)
- internal: speculative retry-after-ms support (#1086) (36a7576)
- lazy load raw resource class properties (#1087) (d307127)
Full Changelog: v1.7.2...v1.8.0
- client: ensure path params are non-empty (#1075) (9a25149)
- proxy: prevent recursion errors when debugging pycharm (#1076) (3d78798)
Full Changelog: v1.7.1...v1.7.2
Full Changelog: v1.7.0...v1.7.1
Full Changelog: v1.6.1...v1.7.0
- add .keep files for examples and custom code directories (#1057) (7524097)
- internal: bump license (#1037) (d828527)
- internal: loosen type var restrictions (#1049) (e00876b)
- internal: replace isort with ruff (#1042) (f1fbc9c)
- internal: update formatting (#1041) (2e9ecee)
- src: fix typos (#988) (6a8b806)
- use property declarations for resource members (#1047) (131f6bc)
- fix docstring typos (#1022) (ad3fd2c)
- improve audio example to show how to stream to a file (#1017) (d45ed7f)
Full Changelog: v1.6.0...v1.6.1
- internal: add bin script (#1001) (99ffbda)
- internal: use ruff instead of black for formatting (#1008) (ceaf9a0)
Full Changelog: v1.5.0...v1.6.0
- cli: fix typo in completions (#985) (d1e9e8f)
- cli: fix typo in completions (#986) (626bc34)
- internal: fix binary response tests (#983) (cfb7e30)
- internal: fix typos (#993) (3b338a4)
- internal: minor utils restructuring (#992) (5ba576a)
- package: bump minimum typing-extensions to 4.7 (#994) (0c2da84)
- streaming: update constructor to use direct client names (#991) (6c3427d)
Full Changelog: v1.4.0...v1.5.0
Full Changelog: v1.3.9...v1.4.0
Full Changelog: v1.3.8...v1.3.9
- improve README timeout comment (#964) (3c3ed5e)
- small Improvement in the async chat response code (#959) (fb9d0a3)
- small streaming readme improvements (#962) (f3be2e5)
Full Changelog: v1.3.7...v1.3.8
- avoid leaking memory when Client.with_options is used (#956) (e37ecca)
- errors: properly assign APIError.body (#949) (c70e194)
- pagination: use correct type hint for .object (#943) (23fe7ee)
- internal: enable more lint rules (#945) (2c8add6)
- internal: reformat imports (#939) (ec65124)
- internal: reformat imports (#944) (5290639)
- internal: update formatting (#941) (8e5a156)
- package: lift anyio v4 restriction (#927) (be0438a)
Full Changelog: v1.3.6...v1.3.7
- client: correct base_url setter implementation (#919) (135d9cf)
- client: don't cause crashes when inspecting the module (#897) (db029a5)
- client: ensure retried requests are closed (#902) (e025e6b)
- internal: add tests for proxy change (#899) (71a13d0)
- internal: remove unused type var (#915) (4233bcd)
- internal: replace string concatenation with f-strings (#908) (663a8f6)
- internal: replace string concatenation with f-strings (#909) (caab767)
Full Changelog: v1.3.5...v1.3.6
- deps: bump mypy to v1.7.1 (#891) (11fcb2a)
- internal: send more detailed x-stainless headers (#877) (69e0549)
- revert binary streaming change (#875) (0a06d6a)
- readme: minor updates (#894) (5458457)
- readme: update examples (#893) (124da87)
- update readme code snippet (#890) (c522f21)
Full Changelog: v1.3.4...v1.3.5
- package: add license classifier (#826) (bec004d)
- package: add license classifier metadata (#860) (80dffb1)
Full Changelog: v1.3.3...v1.3.4
Full Changelog: v1.3.2...v1.3.3
Full Changelog: v1.3.1...v1.3.2
Full Changelog: v1.3.0...v1.3.1
Full Changelog: v1.2.4...v1.3.0
- api: add gpt-3.5-turbo-1106 (#813) (9bb3c4e)
- client: support reading the base url from an env variable (#829) (ca5fdc6)
- fix typo in docs and add request header for function calls (#807) (cbef703)
- internal: fix devcontainer interpeter path (#810) (0acc07d)
- add azure env vars (#814) (bd8e32a)
- fix code comment typo (#790) (8407a27)
- readme: fix broken azure_ad notebook link (#781) (3b92cdf)
Full Changelog: v1.2.3...v1.2.4
Full Changelog: v1.2.2...v1.2.3
- cli/audio: file format detection failing for whisper (#733) (01079d6)
- client: correctly flush the stream response body (#771) (0d52731)
- client: serialise pydantic v1 default fields correctly in params (#776) (d4c49ad)
- models: mark unknown fields as set in pydantic v1 (#772) (ae032a1)
- prevent IndexError in fine-tunes CLI (#768) (42f1633)
Full Changelog: v1.2.1...v1.2.2
Full Changelog: v1.2.0...v1.2.1
Full Changelog: v1.1.2...v1.2.0
- api: unify function types (#741) (ed16c4d)
- client: support passing chunk size for binary responses (#747) (c0c89b7)
- api: update embedding response object type (#739) (29182c4)
- client: show a helpful error message if the v0 API is used (#743) (920567c)
Full Changelog: v1.1.1...v1.1.2