main

Changelog

2.9.0 (2025-12-04)

Full Changelog: v2.8.1…v2.9.0

Features

  • api: gpt-5.1-codex-max and responses/compact (22f646e)

Bug Fixes

  • client: avoid mutating user-provided response config object (#2700) (e040d22)
  • ensure streams are always closed (0b1a27f)
  • streaming: correct indentation (575bbac)

Chores

  • deps: mypy 1.18.1 has a regression, pin to 1.17 (22cd586)
  • docs: use environment variables for authentication in code snippets (c2a3cd5)
  • internal: codegen related update (307a066)
  • update lockfile (b4109c5)

2.8.1 (2025-11-17)

Full Changelog: v2.8.0…v2.8.1

Bug Fixes

  • api: align types of input items / output items for typescript (64c9fb3)

2.8.0 (2025-11-13)

Full Changelog: v2.7.2…v2.8.0

Features

Bug Fixes

  • compat: update signatures of model_dump and model_dump_json for Pydantic v1 (c7bd234)

2.7.2 (2025-11-10)

Full Changelog: v2.7.1…v2.7.2

Bug Fixes

Chores

  • package: drop Python 3.8 support (afc14f2)

2.7.1 (2025-11-04)

Full Changelog: v2.7.0…v2.7.1

Bug Fixes

  • api: fix nullability of logprobs (373b7f6)

2.7.0 (2025-11-03)

Full Changelog: v2.6.1…v2.7.0

Features

  • api: Realtime API token_limits, Hybrid searching ranking options (5b43992)
  • api: remove InputAudio from ResponseInputContent (bd70a33)

Bug Fixes

  • client: close streams without requiring full consumption (d8bb7d6)
  • readme: update realtime examples (#2714) (d0370a8)
  • uploads: avoid file handle leak (4f1b691)

Chores

  • internal/tests: avoid race condition with implicit client cleanup (933d23b)
  • internal: grammar fix (it’s -> its) (f7e9e9e)

2.6.1 (2025-10-24)

Full Changelog: v2.6.0…v2.6.1

Bug Fixes

Chores

  • client: clean up custom translations code (cfb9e25)

2.6.0 (2025-10-20)

Full Changelog: v2.5.0…v2.6.0

Features

  • api: Add responses.input_tokens.count (6dd09e2)

Bug Fixes

  • api: internal openapi updates (caabd7c)

2.5.0 (2025-10-17)

Full Changelog: v2.4.0…v2.5.0

Features

Chores

  • bump httpx-aiohttp version to 0.1.9 (67f2f0a)

2.4.0 (2025-10-16)

Full Changelog: v2.3.0…v2.4.0

Features

  • api: Add support for gpt-4o-transcribe-diarize on audio/transcriptions endpoint (bdbe9b8)

Chores

  • fix dangling comment (da14e99)
  • internal: detect missing future annotations with ruff (2672b8f)

2.3.0 (2025-10-10)

Full Changelog: v2.2.0…v2.3.0

Features

  • api: comparison filter in/not in (aa49f62)

Chores

  • package: bump jiter to >=0.10.0 to support Python 3.14 (#2618) (aa445ca)

2.2.0 (2025-10-06)

Full Changelog: v2.1.0…v2.2.0

Features

  • api: dev day 2025 launches (38ac009)

Bug Fixes

  • client: add chatkit to beta resource (de3e561)

2.1.0 (2025-10-02)

Full Changelog: v2.0.1…v2.1.0

Features

  • api: add support for realtime calls (7f7925b)

2.0.1 (2025-10-01)

Full Changelog: v2.0.0…v2.0.1

Bug Fixes

  • api: add status, approval_request_id to MCP tool call (2a02255)

2.0.0 (2025-09-30)

Full Changelog: v1.109.1…v2.0.0

⚠ BREAKING CHANGES

  • api: ResponseFunctionToolCallOutputItem.output and ResponseCustomToolCallOutput.output now return string | Array<ResponseInputText | ResponseInputImage | ResponseInputFile> instead of string only. This may break existing callsites that assume output is always a string.

Features

  • api: Support images and files for function call outputs in responses, BatchUsage (4105376)

1.109.1 (2025-09-24)

Full Changelog: v1.109.0…v1.109.1

Bug Fixes

  • compat: compat with pydantic&lt;2.8.0 when using additional fields (5d95ecf)

1.109.0 (2025-09-23)

Full Changelog: v1.108.2…v1.109.0

Features

1.108.2 (2025-09-22)

Full Changelog: v1.108.1…v1.108.2

Bug Fixes

Chores

  • api: openapi updates for conversations (3224f6f)
  • do not install brew dependencies in ./scripts/bootstrap by default (6764b00)
  • improve example values (20b58e1)

1.108.1 (2025-09-19)

Full Changelog: v1.108.0…v1.108.1

Features

Chores

  • types: change optional parameter type from NotGiven to Omit (acc190a)

1.108.0 (2025-09-17)

Full Changelog: v1.107.3…v1.108.0

Features

  • api: type updates for conversations, reasoning_effort and results for evals (c2ee28c)

Chores

  • internal: update pydantic dependency (369d10a)

1.107.3 (2025-09-15)

Full Changelog: v1.107.2…v1.107.3

Chores

  • api: docs and spec refactoring (9bab5da)
  • tests: simplify get_platform test (0b1f6a2)

1.107.2 (2025-09-12)

Full Changelog: v1.107.1…v1.107.2

Chores

  • api: Minor docs and type updates for realtime (ab6a10d)
  • tests: simplify get_platform test (01f03e0)

1.107.1 (2025-09-10)

Full Changelog: v1.107.0…v1.107.1

Chores

  • api: fix realtime GA types (570fc5a)

1.107.0 (2025-09-08)

Full Changelog: v1.106.1…v1.107.0

Features

  • api: ship the RealtimeGA API shape (dc319d8)

Chores

  • internal: codegen related update (b79b7ca)

1.106.1 (2025-09-04)

Full Changelog: v1.106.0…v1.106.1

Chores

  • internal: move mypy configurations to pyproject.toml file (ca413a2)

1.106.0 (2025-09-04)

Full Changelog: v1.105.0…v1.106.0

Features

  • client: support callable api_key (#2588) (e1bad01)
  • improve future compat with pydantic v3 (6645d93)

1.105.0 (2025-09-03)

Full Changelog: v1.104.2…v1.105.0

Features

  • api: Add gpt-realtime models (8502041)

1.104.2 (2025-09-02)

Full Changelog: v1.104.1…v1.104.2

Bug Fixes

  • types: add aliases back for web search tool types (2521cd8)

1.104.1 (2025-09-02)

Full Changelog: v1.104.0…v1.104.1

Chores

  • api: manual updates for ResponseInputAudio (0db5061)

1.104.0 (2025-09-02)

Full Changelog: v1.103.0…v1.104.0

Features

  • types: replace List[str] with SequenceNotStr in params (bc00bda)

Bug Fixes

  • types: update more types to use SequenceNotStr (cff135c)
  • types: update some types to SequenceNotStr (03f8b88)

Chores

1.103.0 (2025-09-02)

Full Changelog: v1.102.0…v1.103.0

Features

  • api: realtime API updates (b7c2ddc)

Bug Fixes

  • responses: add missing params to stream() method (bfc0673)

Chores

  • bump inline-snapshot version to 0.28.0 (#2590) (a6b0872)
  • client: format imports (7ae3020)
  • internal: add Sequence related utils (d3d72b9)
  • internal: fix formatting (3ab273f)
  • internal: minor formatting change (478a348)
  • internal: update pyright exclude list (66e440f)

1.102.0 (2025-08-26)

Full Changelog: v1.101.0…v1.102.0

Features

  • api: add web search filters (1c199a8)

Bug Fixes

Chores

  • internal: change ci workflow machines (3e129d5)
  • internal: codegen related update (b6dc170)

1.101.0 (2025-08-21)

Full Changelog: v1.100.3…v1.101.0

Features

  • api: Add connectors support for MCP tool (a47f962)
  • api: adding support for /v1/conversations to the API (e30bcbc)

Chores

1.100.3 (2025-08-20)

Full Changelog: v1.100.2…v1.100.3

Chores

  • internal/ci: setup breaking change detection (ca2f936)

1.100.2 (2025-08-19)

Full Changelog: v1.100.1…v1.100.2

Chores

  • api: accurately represent shape for verbosity on Chat Completions (c39d5fd)

1.100.1 (2025-08-18)

Full Changelog: v1.100.0…v1.100.1

Bug Fixes

  • types: revert response text config deletion (ac4fb19)

1.100.0 (2025-08-18)

Full Changelog: v1.99.9…v1.100.0

Features

  • api: add new text parameters, expiration options (e3dfa7c)

1.99.9 (2025-08-12)

Full Changelog: v1.99.8…v1.99.9

Bug Fixes

  • types: actually fix ChatCompletionMessageToolCall type (20cb0c8)

1.99.8 (2025-08-11)

Full Changelog: v1.99.7…v1.99.8

Bug Fixes

  • internal/tests: correct snapshot update comment (2784a7a)
  • types: revert ChatCompletionMessageToolCallUnion breaking change (ba54e03)

Chores

  • internal/tests: add inline snapshot format command (8107db8)
  • internal: fix formatting (f03a03d)
  • tests: add responses output_text test (971347b)

Refactors

  • tests: share snapshot utils (791c567)

1.99.7 (2025-08-11)

Full Changelog: v1.99.6…v1.99.7

Bug Fixes

  • types: rename ChatCompletionMessageToolCallParam (48085e2)
  • types: revert ChatCompletionMessageToolCallParam to a TypedDict (c8e9cec)

1.99.6 (2025-08-09)

Full Changelog: v1.99.5…v1.99.6

Bug Fixes

  • types: re-export more tool call types (8fe5741)

Chores

  • internal: update comment in script (e407bb5)
  • update @stainless-api/prism-cli to v5.15.0 (a1883fc)

1.99.5 (2025-08-08)

Full Changelog: v1.99.4…v1.99.5

Bug Fixes

  • client: fix verbosity parameter location in Responses (2764ff4)

1.99.4 (2025-08-08)

Full Changelog: v1.99.3…v1.99.4

Bug Fixes

  • types: rename chat completion tool (8d3bf88)
  • types: revert ChatCompletionToolParam to a TypedDict (3f4ae72)

1.99.3 (2025-08-07)

Full Changelog: v1.99.2…v1.99.3

Bug Fixes

  • responses: add output_text back (585a4f1)

1.99.2 (2025-08-07)

Full Changelog: v1.99.1…v1.99.2

Features

  • api: adds GPT-5 and new API features: platform.openai.com/docs/guides/gpt-5 (ed370d8)

Bug Fixes

  • types: correct tool types (0c57bd7)

Chores

  • tests: bump inline-snapshot dependency (e236fde)

1.99.1 (2025-08-05)

Full Changelog: v1.99.0…v1.99.1

Bug Fixes

  • internal: correct event imports (2a6d143)

1.99.0 (2025-08-05)

Full Changelog: v1.98.0…v1.99.0

Features

  • api: manual updates (d4aa726)
  • client: support file upload requests (0772e6e)

Bug Fixes

  • add missing prompt_cache_key & prompt_cache_key params (00b49ae)

Chores

  • internal: fix ruff target version (aa6b252)

1.98.0 (2025-07-30)

Full Changelog: v1.97.2…v1.98.0

Features

1.97.2 (2025-07-30)

Full Changelog: v1.97.1…v1.97.2

Chores

  • client: refactor streaming slightly to better future proof it (71c0c74)
  • project: add settings file for vscode (29c22c9)

1.97.1 (2025-07-22)

Full Changelog: v1.97.0…v1.97.1

Bug Fixes

  • parsing: ignore empty metadata (58c359f)
  • parsing: parse extra field types (d524b7e)

Chores

  • api: event shapes more accurate (f3a9a92)

1.97.0 (2025-07-16)

Full Changelog: v1.96.1…v1.97.0

Features

1.96.1 (2025-07-15)

Full Changelog: v1.96.0…v1.96.1

Chores

  • api: update realtime specs (b68b71b)

1.96.0 (2025-07-15)

Full Changelog: v1.95.1…v1.96.0

Features

  • clean up environment call outs (87c2e97)

Chores

  • api: update realtime specs, build config (bf06d88)

1.95.1 (2025-07-11)

Full Changelog: v1.95.0…v1.95.1

Bug Fixes

  • client: don’t send Content-Type header on GET requests (182b763)

1.95.0 (2025-07-10)

Full Changelog: v1.94.0…v1.95.0

Features

  • api: add file_url, fix event ID (265e216)

Chores

  • readme: fix version rendering on pypi (1eee5ca)

1.94.0 (2025-07-10)

Full Changelog: v1.93.3…v1.94.0

Features

  • api: return better error message on missing embedding (#2369) (e53464a)

1.93.3 (2025-07-09)

Full Changelog: v1.93.2…v1.93.3

Bug Fixes

  • parsing: correctly handle nested discriminated unions (fc8a677)

1.93.2 (2025-07-08)

Full Changelog: v1.93.1…v1.93.2

Chores

  • internal: bump pinned h11 dep (4fca6ae)
  • package: mark python 3.13 as supported (2229047)

1.93.1 (2025-07-07)

Full Changelog: v1.93.0…v1.93.1

Bug Fixes

  • ci: correct conditional (de6a9ce)
  • responses: add missing arguments to parse (05590ec)
  • vector stores: add missing arguments to files.create_and_poll (3152134)
  • vector stores: add missing arguments to files.upload_and_poll (9d4f425)

Chores

  • ci: change upload type (cd4aa88)
  • ci: only run for pushes and fork pull requests (f89c7eb)
  • internal: codegen related update (bddb8d2)
  • tests: ensure parse method is in sync with create (4f58e18)
  • tests: ensure vector store files create and poll method is in sync (0fe75a2)

1.93.0 (2025-06-27)

Full Changelog: v1.92.3…v1.93.0

Features

1.92.3 (2025-06-27)

Full Changelog: v1.92.2…v1.92.3

Bug Fixes

  • client: avoid encoding error with empty API keys (5a3e64e)

Documentation

  • examples/realtime: mention macOS requirements (#2142) (27bf6b2)

1.92.2 (2025-06-26)

Full Changelog: v1.92.1…v1.92.2

Chores

  • api: remove unsupported property (ec24408)

1.92.1 (2025-06-26)

Full Changelog: v1.92.0…v1.92.1

Chores

  • client: sync stream/parse methods over (e2536cf)
  • docs: update README to include links to docs on Webhooks (ddbf9f1)

1.92.0 (2025-06-26)

Full Changelog: v1.91.0…v1.92.0

Features

  • api: webhook and deep research support (d3bb116)
  • client: move stream and parse out of beta (0e358ed)

Bug Fixes

  • ci: release-doctor — report correct token name (ff8c556)

Chores

  • internal: add tests for breaking change detection (710fe8f)
  • tests: skip some failing tests on the latest python versions (93ccc38)

1.91.0 (2025-06-23)

Full Changelog: v1.90.0…v1.91.0

Features

  • api: update api shapes for usage and code interpreter (060d566)

1.90.0 (2025-06-20)

Full Changelog: v1.89.0…v1.90.0

Features

  • api: make model and inputs not required to create response (11bd62e)

1.89.0 (2025-06-20)

Full Changelog: v1.88.0…v1.89.0

Features

  • client: add support for aiohttp (9218b07)

Bug Fixes

  • tests: fix: tests which call HTTP endpoints directly with the example parameters (35bcc4b)

Chores

1.88.0 (2025-06-17)

Full Changelog: v1.87.0…v1.88.0

Features

Chores

  • ci: enable for pull requests (542b0ce)
  • internal: minor formatting (29d723d)

1.87.0 (2025-06-16)

Full Changelog: v1.86.0…v1.87.0

Features

  • api: add reusable prompt IDs (36bfe6e)

Bug Fixes

  • client: update service_tier on client.beta.chat.completions (aa488d5)

Chores

  • internal: codegen related update (b1a31e5)
  • internal: update conftest.py (bba0213)
  • tests: add tests for httpx client instantiation & proxies (bc93712)

1.86.0 (2025-06-10)

Full Changelog: v1.85.0…v1.86.0

Features

  • api: Add o3-pro model IDs (d8dd80b)

1.85.0 (2025-06-09)

Full Changelog: v1.84.0…v1.85.0

Features

  • api: Add tools and structured outputs to evals (002cc7b)

Bug Fixes

  • responses: support raw responses for parse() (d459943)

1.84.0 (2025-06-03)

Full Changelog: v1.83.0…v1.84.0

Features

  • api: add new realtime and audio models, realtime session options (0acd0da)

Chores

1.83.0 (2025-06-02)

Full Changelog: v1.82.1…v1.83.0

Features

  • api: Config update for pakrym-stream-param (88bcf3a)
  • client: add follow_redirects request option (26d715f)

Bug Fixes

  • api: Fix evals and code interpreter interfaces (2650159)
  • client: return binary content from get /containers/{container_id}/files/{file_id}/content (f7c80c4)

Chores

  • api: mark some methods as deprecated (3e2ca57)
  • deprecate Assistants API (9d166d7)
  • docs: remove reference to rye shell (c7978e9)

1.82.1 (2025-05-29)

Full Changelog: v1.82.0…v1.82.1

Bug Fixes

  • responses: don’t include parsed_arguments when re-serialising (6d04193)

Chores

  • internal: fix release workflows (361a909)

1.82.0 (2025-05-22)

Full Changelog: v1.81.0…v1.82.0

Features

  • api: new streaming helpers for background responses (2a65d4d)

Bug Fixes

  • azure: mark images/edits as a deployment endpoint #2371 (5d1d5b4)

Documentation

  • readme: another async example fix (9ec8289)
  • readme: fix async example (37d0b25)

1.81.0 (2025-05-21)

Full Changelog: v1.80.0…v1.81.0

Features

  • api: add container endpoint (054a210)

1.80.0 (2025-05-21)

Full Changelog: v1.79.0…v1.80.0

Features

Chores

  • docs: grammar improvements (e746145)

1.79.0 (2025-05-16)

Full Changelog: v1.78.1…v1.79.0

Features

  • api: further updates for evals API (32c99a6)
  • api: manual updates (25245e5)
  • api: responses x eval api (fd586cb)
  • api: Updating Assistants and Evals API schemas (98ba7d3)

Bug Fixes

  • fix create audio transcription endpoint (e9a89ab)

Chores

  • ci: fix installation instructions (f26c5fc)
  • ci: upload sdks to package manager (861f105)

1.78.1 (2025-05-12)

Full Changelog: v1.78.0…v1.78.1

Bug Fixes

  • internal: fix linting due to broken test annotation (5a7d7a0)
  • package: support direct resource imports (2293fc0)

1.78.0 (2025-05-08)

Full Changelog: v1.77.0…v1.78.0

Features

  • api: Add reinforcement fine-tuning api support (bebe361)

Bug Fixes

  • ignore errors in isinstance() calls on LazyProxy subclasses (#2343) (52cbbdf), closes #2056

Chores

  • internal: update proxy tests (b8e848d)
  • use lazy imports for module level client (4d0f409)
  • use lazy imports for resources (834813c)

1.77.0 (2025-05-02)

Full Changelog: v1.76.2…v1.77.0

Features

  • api: add image sizes, reasoning encryption (473469a)

Bug Fixes

Chores

  • only strip leading whitespace (8467d66)

1.76.2 (2025-04-29)

Full Changelog: v1.76.1…v1.76.2

Chores

1.76.1 (2025-04-29)

Full Changelog: v1.76.0…v1.76.1

Chores

  • broadly detect json family of content-type headers (b4b1b08)
  • ci: only use depot for staging repos (35312d8)
  • ci: run on more branches and use depot runners (a6a45d4)

1.76.0 (2025-04-23)

Full Changelog: v1.75.0…v1.76.0

Features

  • api: adding new image model support (74d7692)

Bug Fixes

  • pydantic v1: more robust ModelField.annotation check (#2163) (7351b12)
  • pydantic v1: more robust ModelField.annotation check (eba7856)

Chores

  • ci: add timeout thresholds for CI jobs (0997211)
  • internal: fix list file params (da2113c)
  • internal: import reformatting (b425fb9)
  • internal: minor formatting changes (aed1d76)
  • internal: refactor retries to not use recursion (8cb8cfa)
  • internal: update models test (870ad4e)
  • update completion parse signature (a44016c)

1.75.0 (2025-04-16)

Full Changelog: v1.74.1…v1.75.0

Features

  • api: add o3 and o4-mini model IDs (4bacbd5)

1.74.1 (2025-04-16)

Full Changelog: v1.74.0…v1.74.1

Chores

  • internal: base client updates (06303b5)
  • internal: bump pyright version (9fd1c77)

1.74.0 (2025-04-14)

Full Changelog: v1.73.0…v1.74.0

Features

  • api: adding gpt-4.1 family of model IDs (d4dae55)

Bug Fixes

Chores

  • client: minor internal fixes (6071ae5)
  • internal: update pyright settings (c8f8beb)

1.73.0 (2025-04-12)

Full Changelog: v1.72.0…v1.73.0

Features

Bug Fixes

  • perf: optimize some hot paths (f79d39f)
  • perf: skip traversing types for NotGiven values (28d220d)

Chores

1.72.0 (2025-04-08)

Full Changelog: v1.71.0…v1.72.0

Features

Chores

1.71.0 (2025-04-07)

Full Changelog: v1.70.0…v1.71.0

Features

Chores

  • deps: allow websockets v15 (#2281) (19c619e)
  • internal: only run examples workflow in main repo (#2282) (c3e0927)
  • internal: remove trailing character (#2277) (5a21a2d)
  • Remove deprecated/unused remote spec feature (23f76eb)

1.70.0 (2025-03-31)

Full Changelog: v1.69.0…v1.70.0

Features

  • api: add get /responses/{response_id}/input_items endpoint (4c6a35d)

1.69.0 (2025-03-27)

Full Changelog: v1.68.2…v1.69.0

Features

  • api: add get /chat/completions endpoint (e6b8a42)

Bug Fixes

  • audio: correctly parse transcription stream events (16a3a19)

Chores

1.68.2 (2025-03-21)

Full Changelog: v1.68.1…v1.68.2

Refactors

  • package: rename audio extra to voice_helpers (2dd6cb8)

1.68.1 (2025-03-21)

Full Changelog: v1.68.0…v1.68.1

Bug Fixes

  • client: remove duplicate types (#2235) (063f7d0)
  • helpers/audio: remove duplicative module (f253d04)
  • package: make sounddevice and numpy optional dependencies (8b04453)

Chores

  • ci: run workflows on next too (67f89d4)

1.68.0 (2025-03-20)

Full Changelog: v1.67.0…v1.68.0

Features

  • add audio helpers (423655c)
  • api: new models for TTS, STT, + new audio features for Realtime (#2232) (ab5192d)

1.67.0 (2025-03-19)

Full Changelog: v1.66.5…v1.67.0

Features

1.66.5 (2025-03-18)

Full Changelog: v1.66.4…v1.66.5

Bug Fixes

Chores

  • internal: add back releases workflow (c71d4c9)
  • internal: codegen related update (#2222) (f570d91)

1.66.4 (2025-03-17)

Full Changelog: v1.66.3…v1.66.4

Bug Fixes

Chores

1.66.3 (2025-03-12)

Full Changelog: v1.66.2…v1.66.3

Bug Fixes

1.66.2 (2025-03-11)

Full Changelog: v1.66.1…v1.66.2

Bug Fixes

1.66.1 (2025-03-11)

Full Changelog: v1.66.0…v1.66.1

Bug Fixes

  • responses: correct computer use enum value (#2180) (48f4628)

Chores

  • internal: temporary commit (afabec1)

1.66.0 (2025-03-11)

Full Changelog: v1.65.5…v1.66.0

Features

  • api: add /v1/responses and built-in tools (854df97)

Chores

1.65.5 (2025-03-09)

Full Changelog: v1.65.4…v1.65.5

Chores

1.65.4 (2025-03-05)

Full Changelog: v1.65.3…v1.65.4

Bug Fixes

  • api: add missing file rank enum + more metadata (#2164) (0387e48)

1.65.3 (2025-03-04)

Full Changelog: v1.65.2…v1.65.3

Chores

  • internal: remove unused http client options forwarding (#2158) (76ec464)
  • internal: run example files in CI (#2160) (9979345)

1.65.2 (2025-03-01)

Full Changelog: v1.65.1…v1.65.2

Bug Fixes

  • azure: azure_deployment use with realtime + non-deployment-based APIs (#2154) (5846b55)

Chores

1.65.1 (2025-02-27)

Full Changelog: v1.65.0…v1.65.1

Documentation

  • update URLs from stainlessapi.com to stainless.com (#2150) (dee4298)

1.65.0 (2025-02-27)

Full Changelog: v1.64.0…v1.65.0

Features

Chores

1.64.0 (2025-02-22)

Full Changelog: v1.63.2…v1.64.0

Features

Bug Fixes

  • client: mark some request bodies as optional (4451f56)

Chores

1.63.2 (2025-02-17)

Full Changelog: v1.63.1…v1.63.2

Chores

1.63.1 (2025-02-17)

Full Changelog: v1.63.0…v1.63.1

Chores

1.63.0 (2025-02-13)

Full Changelog: v1.62.0…v1.63.0

Features

  • api: add support for storing chat completions (#2117) (2357a8f)

1.62.0 (2025-02-12)

Full Changelog: v1.61.1…v1.62.0

Features

  • client: send X-Stainless-Read-Timeout header (#2094) (0288213)
  • embeddings: use stdlib array type for improved performance (#2060) (9a95db9)
  • pagination: avoid fetching when has_more: false (#2098) (1882483)

Bug Fixes

  • api: add missing reasoning effort + model enums (#2096) (e0ca9f0)
  • parsing: don’t default to an empty array (#2106) (8e748bb)

Chores

  • internal: fix type traversing dictionary params (#2097) (4e5b368)
  • internal: minor type handling changes (#2099) (a2c6da0)

1.61.1 (2025-02-05)

Full Changelog: v1.61.0…v1.61.1

Bug Fixes

Chores

1.61.0 (2025-01-31)

Full Changelog: v1.60.2…v1.61.0

Features

Bug Fixes

  • types: correct metadata type + other fixes (12b87a4)

Chores

Documentation

1.60.2 (2025-01-27)

Full Changelog: v1.60.1…v1.60.2

Bug Fixes

  • parsing: don’t validate input tools in the asynchronous .parse() method (6fcfe73)

1.60.1 (2025-01-24)

Full Changelog: v1.60.0…v1.60.1

Chores

Documentation

1.60.0 (2025-01-22)

Full Changelog: v1.59.9…v1.60.0

Features

  • api: update enum values, comments, and examples (#2045) (e8205fd)

Chores

Documentation

  • readme: mention failed requests in request IDs (5f7c30b)

1.59.9 (2025-01-20)

Full Changelog: v1.59.8…v1.59.9

Bug Fixes

Chores

Documentation

1.59.8 (2025-01-17)

Full Changelog: v1.59.7…v1.59.8

Bug Fixes

  • streaming (c16f58e)
  • structured outputs: avoid parsing empty empty content (#2023) (6d3513c)
  • structured outputs: correct schema coercion for inline ref expansion (#2025) (2f4f0b3)
  • types: correct type for vector store chunking strategy (#2017) (e389279)

Chores

Documentation

  • examples/azure: example script with realtime API (#1967) (84f2f9c)

1.59.7 (2025-01-13)

Full Changelog: v1.59.6…v1.59.7

Chores

  • export HttpxBinaryResponseContent class (7191b71)

1.59.6 (2025-01-09)

Full Changelog: v1.59.5…v1.59.6

Bug Fixes

Chores

1.59.5 (2025-01-08)

Full Changelog: v1.59.4…v1.59.5

Bug Fixes

Documentation

1.59.4 (2025-01-07)

Full Changelog: v1.59.3…v1.59.4

Chores

Documentation

  • realtime: fix event reference link (9b6885d)

1.59.3 (2025-01-03)

Full Changelog: v1.59.2…v1.59.3

Chores

1.59.2 (2025-01-03)

Full Changelog: v1.59.1…v1.59.2

Chores

1.59.1 (2025-01-02)

Full Changelog: v1.59.0…v1.59.1

Chores

1.59.0 (2024-12-21)

Full Changelog: v1.58.1…v1.59.0

Features

Chores

1.58.1 (2024-12-17)

Full Changelog: v1.58.0…v1.58.1

Documentation

  • readme: fix example script link (23ba877)

1.58.0 (2024-12-17)

Full Changelog: v1.57.4…v1.58.0

Features

Bug Fixes

  • add reasoning_effort to all methods (8829c32)
  • assistants: correctly send include query param (9a4c69c)
  • cli/migrate: change grit binaries prefix (#1951) (1c396c9)

Chores

Documentation

  • add examples + guidance on Realtime API support (1cb00f8)
  • readme: example snippet for client context manager (#1953) (ad80255)

1.57.4 (2024-12-13)

Full Changelog: v1.57.3…v1.57.4

Chores

1.57.3 (2024-12-12)

Full Changelog: v1.57.2…v1.57.3

Chores

1.57.2 (2024-12-10)

Full Changelog: v1.57.1…v1.57.2

Bug Fixes

  • azure: handle trailing slash in azure_endpoint (#1935) (69b73c5)

Documentation

1.57.1 (2024-12-09)

Full Changelog: v1.57.0…v1.57.1

Chores

1.57.0 (2024-12-05)

Full Changelog: v1.56.2…v1.57.0

Features

Chores

1.56.2 (2024-12-04)

Full Changelog: v1.56.1…v1.56.2

Chores

1.56.1 (2024-12-03)

Full Changelog: v1.56.0…v1.56.1

Bug Fixes

  • cli: remove usage of httpx proxies (0e9fc3d)

Chores

1.56.0 (2024-12-02)

Full Changelog: v1.55.3…v1.56.0

Features

  • client: make ChatCompletionStreamState public (#1898) (dc7f6cb)

1.55.3 (2024-11-28)

Full Changelog: v1.55.2…v1.55.3

Bug Fixes

  • client: compat with new httpx 0.28.0 release (#1904) (72b6c63)

1.55.2 (2024-11-27)

Full Changelog: v1.55.1…v1.55.2

Chores

  • internal: exclude mypy from running on tests (#1899) (e2496f1)

Documentation

1.55.1 (2024-11-25)

Full Changelog: v1.55.0…v1.55.1

Bug Fixes

  • pydantic-v1: avoid runtime error for assistants streaming (#1885) (197c94b)

Chores

Documentation

1.55.0 (2024-11-20)

Full Changelog: v1.54.5…v1.55.0

Features

1.54.5 (2024-11-19)

Full Changelog: v1.54.4…v1.54.5

Bug Fixes

  • asyncify: avoid hanging process under certain conditions (#1853) (3d23437)

Chores

1.54.4 (2024-11-12)

Full Changelog: v1.54.3…v1.54.4

Bug Fixes

  • don’t use dicts as iterables in transform (#1865) (76a51b1)

Documentation

1.54.3 (2024-11-06)

Full Changelog: v1.54.2…v1.54.3

Bug Fixes

1.54.2 (2024-11-06)

Full Changelog: v1.54.1…v1.54.2

Chores

1.54.1 (2024-11-05)

Full Changelog: v1.54.0…v1.54.1

Bug Fixes

  • add new prediction param to all methods (6aa424d)

1.54.0 (2024-11-04)

Full Changelog: v1.53.1…v1.54.0

Features

1.53.1 (2024-11-04)

Full Changelog: v1.53.0…v1.53.1

Bug Fixes

  • don’t use dicts as iterables in transform (#1842) (258f265)
  • support json safe serialization for basemodel subclasses (#1844) (2b80c90)

Chores

1.53.0 (2024-10-30)

Full Changelog: v1.52.2…v1.53.0

Features

  • api: add new, expressive voices for Realtime and Audio in Chat Completions (7cf0a49)

Chores

1.52.2 (2024-10-23)

Full Changelog: v1.52.1…v1.52.2

Chores

1.52.1 (2024-10-22)

Full Changelog: v1.52.0…v1.52.1

Bug Fixes

  • client/async: correctly retry in all cases (#1803) (9fe3f3f)

Chores

1.52.0 (2024-10-17)

Full Changelog: v1.51.2…v1.52.0

Features

  • api: add gpt-4o-audio-preview model for chat completions (#1796) (fbf1e0c)

1.51.2 (2024-10-08)

Full Changelog: v1.51.1…v1.51.2

Chores

1.51.1 (2024-10-07)

Full Changelog: v1.51.0…v1.51.1

Bug Fixes

  • client: avoid OverflowError with very large retry counts (#1779) (fb1dacf)

Chores

  • internal: add support for parsing bool response content (#1774) (aa2e25f)

Documentation

  • fix typo in fenced code block language (#1769) (57bbc15)
  • improve and reference contributing documentation (#1767) (a985a8b)

1.51.0 (2024-10-01)

Full Changelog: v1.50.2…v1.51.0

Features

  • api: support storing chat completions, enabling evals and model distillation in the dashboard (2840c6d)

Chores

Documentation

1.50.2 (2024-09-27)

Full Changelog: v1.50.1…v1.50.2

Bug Fixes

  • audio: correct types for transcriptions / translations (#1755) (76c1f3f)

1.50.1 (2024-09-27)

Full Changelog: v1.50.0…v1.50.1

Documentation

1.50.0 (2024-09-26)

Full Changelog: v1.49.0…v1.50.0

Features

  • structured outputs: add support for accessing raw responses (#1748) (0189e28)

Chores

  • pydantic v1: exclude specific properties when rich printing (#1751) (af535ce)

1.49.0 (2024-09-26)

Full Changelog: v1.48.0…v1.49.0

Features

Chores

1.48.0 (2024-09-25)

Full Changelog: v1.47.1…v1.48.0

Features

  • client: allow overriding retry count header (#1745) (9f07d4d)

Bug Fixes

  • audio: correct response_format translations type (#1743) (b912108)

Chores

  • internal: use typing_extensions.overload instead of typing (#1740) (2522bd5)

1.47.1 (2024-09-23)

Full Changelog: v1.47.0…v1.47.1

Bug Fixes

  • pydantic v1: avoid warnings error (1e8e7d1)

1.47.0 (2024-09-20)

Full Changelog: v1.46.1…v1.47.0

Features

  • client: send retry count header (21b0c00)

Chores

  • types: improve type name for embedding models (#1730) (4b4eb2b)

1.46.1 (2024-09-19)

Full Changelog: v1.46.0…v1.46.1

Bug Fixes

Chores

  • streaming: silence pydantic model_dump warnings (#1722) (30f84b9)

1.46.0 (2024-09-17)

Full Changelog: v1.45.1…v1.46.0

Features

  • client: add ._request_id property to object responses (#1707) (8b3da05)

Documentation

  • readme: add examples for chat with image content (#1703) (192b8f2)

1.45.1 (2024-09-16)

Full Changelog: v1.45.0…v1.45.1

Chores

Documentation

1.45.0 (2024-09-12)

Full Changelog: v1.44.1…v1.45.0

Features

Bug Fixes

  • types: correctly mark stream discriminator as optional (#1706) (80f02f9)

1.44.1 (2024-09-09)

Full Changelog: v1.44.0…v1.44.1

Chores

Documentation

  • readme: add section on determining installed version (#1697) (0255735)
  • readme: improve custom base_url example (#1694) (05eec8a)

1.44.0 (2024-09-06)

Full Changelog: v1.43.1…v1.44.0

Features

  • vector store: improve chunking strategy type names (#1690) (e82cd85)

1.43.1 (2024-09-05)

Full Changelog: v1.43.0…v1.43.1

Chores

1.43.0 (2024-08-29)

Full Changelog: v1.42.0…v1.43.0

Features

  • api: add file search result details to run steps (#1681) (f5449c0)

1.42.0 (2024-08-20)

Full Changelog: v1.41.1…v1.42.0

Features

  • parsing: add support for pydantic dataclasses (#1655) (101bee9)

Chores

1.41.1 (2024-08-19)

Full Changelog: v1.41.0…v1.41.1

Bug Fixes

Chores

  • client: fix parsing union responses when non-json is returned (#1665) (822c37d)

1.41.0 (2024-08-16)

Full Changelog: v1.40.8…v1.41.0

Features

  • client: add uploads.upload_file helper (aae079d)

1.40.8 (2024-08-15)

Full Changelog: v1.40.7…v1.40.8

Chores

1.40.7 (2024-08-15)

Full Changelog: v1.40.6…v1.40.7

Bug Fixes

  • cli/migrate: change grit binaries download source (#1649) (85e8935)

Chores

  • docs: fix typo in example snippet (4e83b57)
  • internal: use different 32bit detection method (#1652) (5831af6)

1.40.6 (2024-08-12)

Full Changelog: v1.40.5…v1.40.6

Chores

1.40.5 (2024-08-12)

Full Changelog: v1.40.4…v1.40.5

Documentation

  • helpers: make async client usage more clear (34e1edf), closes #1639

1.40.4 (2024-08-12)

Full Changelog: v1.40.3…v1.40.4

Bug Fixes

  • json schema: unravel $refs alongside additional keys (c7a3d29)
  • json schema: unwrap allOfs with one entry (53d964d)

1.40.3 (2024-08-10)

Full Changelog: v1.40.2…v1.40.3

Chores

1.40.2 (2024-08-08)

Full Changelog: v1.40.1…v1.40.2

Bug Fixes

  • client: raise helpful error message for response_format misuse (18191da)
  • json schema: support recursive BaseModels in Pydantic v1 (#1623) (43e10c0)

Chores

1.40.1 (2024-08-07)

Full Changelog: v1.40.0…v1.40.1

Chores

1.40.0 (2024-08-06)

Full Changelog: v1.39.0…v1.40.0

Features

  • api: add structured outputs support (e8dba7d)

Chores

1.39.0 (2024-08-05)

Full Changelog: v1.38.0…v1.39.0

Features

  • client: add retries_taken to raw response class (#1601) (777822b)

Bug Fixes

  • assistants: add parallel_tool_calls param to runs.stream (113e82a)

Chores

1.38.0 (2024-08-02)

Full Changelog: v1.37.2…v1.38.0

Features

1.37.2 (2024-08-01)

Full Changelog: v1.37.1…v1.37.2

Chores

  • internal: add type construction helper (#1584) (cbb186a)
  • runs/create_and_poll: add parallel_tool_calls request param (04b3e6c)

1.37.1 (2024-07-25)

Full Changelog: v1.37.0…v1.37.1

Chores

1.37.0 (2024-07-22)

Full Changelog: v1.36.1…v1.37.0

Features

Bug Fixes

  • cli/audio: handle non-json response format (#1557) (bb7431f)

Documentation

1.36.1 (2024-07-20)

Full Changelog: v1.36.0…v1.36.1

Bug Fixes

  • types: add gpt-4o-mini to more assistants methods (39a8a37)

1.36.0 (2024-07-19)

Full Changelog: v1.35.15…v1.36.0

Features

1.35.15 (2024-07-18)

Full Changelog: v1.35.14…v1.35.15

Chores

  • docs: document how to do per-request http client customization (#1560) (24c0768)
  • internal: update formatting (#1553) (e1389bc)

1.35.14 (2024-07-15)

Full Changelog: v1.35.13…v1.35.14

Chores

  • 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)

1.35.13 (2024-07-10)

Full Changelog: v1.35.12…v1.35.13

Bug Fixes

  • threads/runs/create_and_run_stream: correct tool_resources param (8effd08)

Chores

1.35.12 (2024-07-09)

Full Changelog: v1.35.11…v1.35.12

Bug Fixes

  • azure: refresh auth token during retries (#1533) (287926e)
  • tests: fresh_env() now resets new environment values (64da888)

1.35.11 (2024-07-09)

Full Changelog: v1.35.10…v1.35.11

Chores

  • internal: minor request options handling changes (#1534) (8b0e493)

1.35.10 (2024-07-03)

Full Changelog: v1.35.9…v1.35.10

Chores

1.35.9 (2024-07-02)

Full Changelog: v1.35.8…v1.35.9

Bug Fixes

  • client: always respect content-type multipart/form-data if provided (#1519) (6da55e1)

Chores

1.35.8 (2024-07-02)

Full Changelog: v1.35.7…v1.35.8

Chores

1.35.7 (2024-06-27)

Full Changelog: v1.35.6…v1.35.7

Bug Fixes

1.35.6 (2024-06-27)

Full Changelog: v1.35.5…v1.35.6

Documentation

1.35.5 (2024-06-26)

Full Changelog: v1.35.4…v1.35.5

Bug Fixes

  • cli/migrate: avoid reliance on Python 3.12 argument (be7a06b)

1.35.4 (2024-06-26)

Full Changelog: v1.35.3…v1.35.4

Bug Fixes

  • docs: fix link to advanced python httpx docs (#1499) (cf45cd5)
  • temporarily patch upstream version to fix broken release flow (#1500) (4f10470)

Chores

1.35.3 (2024-06-20)

Full Changelog: v1.35.2…v1.35.3

Bug Fixes

  • tests: add explicit type annotation (9345f10)

1.35.2 (2024-06-20)

Full Changelog: v1.35.1…v1.35.2

Bug Fixes

  • api: add missing parallel_tool_calls arguments (4041e4f)

1.35.1 (2024-06-19)

Full Changelog: v1.35.0…v1.35.1

Bug Fixes

  • client/async: avoid blocking io call for platform headers (#1488) (ae64c05)

1.35.0 (2024-06-18)

Full Changelog: v1.34.0…v1.35.0

Features

  • api: add service tier argument for chat completions (#1486) (b4b4e66)

1.34.0 (2024-06-12)

Full Changelog: v1.33.0…v1.34.0

Features

1.33.0 (2024-06-07)

Full Changelog: v1.32.1…v1.33.0

Features

  • api: adding chunking_strategy to polling helpers (#1478) (83be2a1)

1.32.1 (2024-06-07)

Full Changelog: v1.32.0…v1.32.1

Bug Fixes

1.32.0 (2024-06-06)

Full Changelog: v1.31.2…v1.32.0

Features

1.31.2 (2024-06-06)

Full Changelog: v1.31.1…v1.31.2

Chores

1.31.1 (2024-06-05)

Full Changelog: v1.31.0…v1.31.1

Chores

1.31.0 (2024-06-03)

Full Changelog: v1.30.5…v1.31.0

Features

Chores

1.30.5 (2024-05-29)

Full Changelog: v1.30.4…v1.30.5

Chores

1.30.4 (2024-05-28)

Full Changelog: v1.30.3…v1.30.4

Chores

  • add missing all definitions (7fba60f)
  • internal: fix lint issue (f423cd0)

1.30.3 (2024-05-24)

Full Changelog: v1.30.2…v1.30.3

Chores

Documentation

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

1.30.2 (2024-05-23)

Full Changelog: v1.30.1…v1.30.2

Chores

1.30.1 (2024-05-14)

Full Changelog: v1.30.0…v1.30.1

Chores

  • internal: add slightly better logging to scripts (#1422) (43dffab)

1.30.0 (2024-05-14)

Full Changelog: v1.29.0…v1.30.0

Features

1.29.0 (2024-05-13)

Full Changelog: v1.28.2…v1.29.0

Features

1.28.2 (2024-05-13)

Full Changelog: v1.28.1…v1.28.2

Bug Fixes

  • client: accidental blocking sleep in async code (#1415) (0ac6ecb)

Chores

1.28.1 (2024-05-11)

Full Changelog: v1.28.0…v1.28.1

Chores

1.28.0 (2024-05-09)

Full Changelog: v1.27.0…v1.28.0

Features

1.27.0 (2024-05-08)

Full Changelog: v1.26.0…v1.27.0

Features

1.26.0 (2024-05-06)

Full Changelog: v1.25.2…v1.26.0

Features

1.25.2 (2024-05-05)

Full Changelog: v1.25.1…v1.25.2

Documentation

  • readme: fix misleading timeout example value (#1393) (3eba8e7)

1.25.1 (2024-05-02)

Full Changelog: v1.25.0…v1.25.1

Chores

1.25.0 (2024-05-01)

Full Changelog: v1.24.1…v1.25.0

Features

1.24.1 (2024-04-30)

Full Changelog: v1.24.0…v1.24.1

Chores

1.24.0 (2024-04-29)

Full Changelog: v1.23.6…v1.24.0

Features

Chores

1.23.6 (2024-04-25)

Full Changelog: v1.23.5…v1.23.6

Chores

1.23.5 (2024-04-24)

Full Changelog: v1.23.4…v1.23.5

Chores

  • internal: use actions/checkout@v4 for codeflow (#1368) (d1edf8b)

1.23.4 (2024-04-24)

Full Changelog: v1.23.3…v1.23.4

Bug Fixes

Chores

1.23.3 (2024-04-23)

Full Changelog: v1.23.2…v1.23.3

Chores

1.23.2 (2024-04-19)

Full Changelog: v1.23.1…v1.23.2

Bug Fixes

  • api: correct types for message attachment tools (#1348) (78a6261)

1.23.1 (2024-04-18)

Full Changelog: v1.23.0…v1.23.1

Bug Fixes

1.23.0 (2024-04-18)

Full Changelog: v1.22.0…v1.23.0

Features

  • api: add request id property to response classes (#1341) (444d680)

Documentation

1.22.0 (2024-04-18)

Full Changelog: v1.21.2…v1.22.0

Features

Chores

1.21.2 (2024-04-17)

Full Changelog: v1.21.1…v1.21.2

Chores

1.21.1 (2024-04-17)

Full Changelog: v1.21.0…v1.21.1

Chores

  • api: docs and response_format response property (#1327) (7a6d142)

1.21.0 (2024-04-17)

Full Changelog: v1.20.0…v1.21.0

Features

1.20.0 (2024-04-16)

Full Changelog: v1.19.0…v1.20.0

Features

1.19.0 (2024-04-15)

Full Changelog: v1.18.0…v1.19.0

Features

1.18.0 (2024-04-15)

Full Changelog: v1.17.1…v1.18.0

Features

1.17.1 (2024-04-12)

Full Changelog: v1.17.0…v1.17.1

Chores

1.17.0 (2024-04-10)

Full Changelog: v1.16.2…v1.17.0

Features

  • 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)

1.16.2 (2024-04-04)

Full Changelog: v1.16.1…v1.16.2

Bug Fixes

  • client: correct logic for line decoding in streaming (#1293) (687caef)

1.16.1 (2024-04-02)

Full Changelog: v1.16.0…v1.16.1

Chores

  • internal: defer model build for import latency (#1291) (bc6866e)

1.16.0 (2024-04-01)

Full Changelog: v1.15.0…v1.16.0

Features

Chores

  • client: validate that max_retries is not None (#1286) (aa5920a)

Refactors

  • rename createAndStream to stream (6b427f3)

1.15.0 (2024-03-31)

Full Changelog: v1.14.3…v1.15.0

Features

  • 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)

Bug Fixes

  • project: use absolute github links on PyPi (#1280) (94cd528)

Chores

Documentation

  • readme: change undocumented params wording (#1284) (7498ef1)

1.14.3 (2024-03-25)

Full Changelog: v1.14.2…v1.14.3

Bug Fixes

Chores

  • 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)

Documentation

1.14.2 (2024-03-19)

Full Changelog: v1.14.1…v1.14.2

Performance Improvements

Chores

Documentation

1.14.1 (2024-03-15)

Full Changelog: v1.14.0…v1.14.1

Documentation

1.14.0 (2024-03-13)

Full Changelog: v1.13.4…v1.14.0

Features

1.13.4 (2024-03-13)

Full Changelog: v1.13.3…v1.13.4

Bug Fixes

Chores

Documentation

1.13.3 (2024-02-28)

Full Changelog: v1.13.2…v1.13.3

Features

Chores

Documentation

1.13.2 (2024-02-20)

Full Changelog: v1.13.1…v1.13.2

Bug Fixes

  • ci: revert “move github release logic to github app” (#1170) (f1adc2e)

1.13.1 (2024-02-20)

Full Changelog: v1.13.0…v1.13.1

Chores

1.13.0 (2024-02-19)

Full Changelog: v1.12.0…v1.13.0

Features

Bug Fixes

Chores

  • 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)

1.12.0 (2024-02-08)

Full Changelog: v1.11.1…v1.12.0

Features

  • api: add timestamp_granularities, add gpt-3.5-turbo-0125 model (#1125) (1ecf8f6)
  • cli/images: add support for --model arg (#1132) (0d53866)

Bug Fixes

  • remove double brackets from timestamp_granularities param (#1140) (3db0222)
  • types: loosen most List params types to Iterable (#1129) (bdb31a3)

Chores

Documentation

1.11.1 (2024-02-04)

Full Changelog: v1.11.0…v1.11.1

Bug Fixes

  • prevent crash when platform.architecture() is not allowed (#1120) (9490554)

1.11.0 (2024-02-03)

Full Changelog: v1.10.0…v1.11.0

Features

  • client: support parsing custom response types (#1111) (da00fc3)

Chores

  • 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)

1.10.0 (2024-01-25)

Full Changelog: v1.9.0…v1.10.0

Features

  • 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)

Chores

Refactors

1.9.0 (2024-01-21)

Full Changelog: v1.8.0…v1.9.0

Features

Chores

1.8.0 (2024-01-16)

Full Changelog: v1.7.2…v1.8.0

Features

  • client: add support for streaming raw responses (#1072) (0e93c3b)

Bug Fixes

  • client: ensure path params are non-empty (#1075) (9a25149)
  • proxy: prevent recursion errors when debugging pycharm (#1076) (3d78798)

Chores

1.7.2 (2024-01-12)

Full Changelog: v1.7.1…v1.7.2

Documentation

Refactors

1.7.1 (2024-01-10)

Full Changelog: v1.7.0…v1.7.1

Chores

  • client: improve debug logging for failed requests (#1060) (cf9a651)

1.7.0 (2024-01-08)

Full Changelog: v1.6.1…v1.7.0

Features

  • add None default value to nullable response properties (#1043) (d94b4d3)

Bug Fixes

  • client: correctly use custom http client auth (#1028) (3d7d93e)

Chores

Documentation

1.6.1 (2023-12-22)

Full Changelog: v1.6.0…v1.6.1

Chores

1.6.0 (2023-12-19)

Full Changelog: v1.5.0…v1.6.0

Features

  • api: add additional instructions for runs (#995) (7bf9b75)

Chores

Documentation

  • upgrade models in examples to latest version (#989) (cedd574)

1.5.0 (2023-12-17)

Full Changelog: v1.4.0…v1.5.0

Features

  • api: add token logprobs to chat completions (#980) (f50e962)

Chores

1.4.0 (2023-12-15)

Full Changelog: v1.3.9…v1.4.0

Features

  • api: add optional name argument + improve docs (#972) (7972010)

1.3.9 (2023-12-12)

Full Changelog: v1.3.8…v1.3.9

Documentation

  • improve README timeout comment (#964) (3c3ed5e)
  • small Improvement in the async chat response code (#959) (fb9d0a3)
  • small streaming readme improvements (#962) (f3be2e5)

Refactors

1.3.8 (2023-12-08)

Full Changelog: v1.3.7…v1.3.8

Bug Fixes

  • 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)

Chores

Documentation

1.3.7 (2023-12-01)

Full Changelog: v1.3.6…v1.3.7

Bug Fixes

  • 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)

Chores

  • 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)

Documentation

1.3.6 (2023-11-28)

Full Changelog: v1.3.5…v1.3.6

Bug Fixes

  • client: add support for streaming binary responses (#866) (2470d25)

Chores

Documentation

1.3.5 (2023-11-21)

Full Changelog: v1.3.4…v1.3.5

Bug Fixes

  • azure: ensure custom options can be passed to copy (#858) (05ca0d6)

Chores

1.3.4 (2023-11-21)

Full Changelog: v1.3.3…v1.3.4

Bug Fixes

  • client: attempt to parse unknown json content types (#854) (ba50466)

Chores

  • examples: fix static types in assistants example (#852) (5b47b2c)

1.3.3 (2023-11-17)

Full Changelog: v1.3.2…v1.3.3

Chores

  • internal: update type hint for helper function (#846) (9a5966c)

1.3.2 (2023-11-16)

Full Changelog: v1.3.1…v1.3.2

Documentation

1.3.1 (2023-11-16)

Full Changelog: v1.3.0…v1.3.1

Chores

1.3.0 (2023-11-15)

Full Changelog: v1.2.4…v1.3.0

Features

  • api: add gpt-3.5-turbo-1106 (#813) (9bb3c4e)
  • client: support reading the base url from an env variable (#829) (ca5fdc6)

Bug Fixes

  • breaking!: correct broken type names in moderation categories (#811) (0bc211f)

Chores

  • fix typo in docs and add request header for function calls (#807) (cbef703)
  • internal: fix devcontainer interpeter path (#810) (0acc07d)

Documentation

1.2.4 (2023-11-13)

Full Changelog: v1.2.3…v1.2.4

Bug Fixes

  • client: retry if SSLWantReadError occurs in the async client (#804) (be82288)

1.2.3 (2023-11-10)

Full Changelog: v1.2.2…v1.2.3

Bug Fixes

  • 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)

Documentation

1.2.2 (2023-11-09)

Full Changelog: v1.2.1…v1.2.2

Bug Fixes

  • client: correctly assign error properties (#759) (ef264d2)

Documentation

1.2.1 (2023-11-09)

Full Changelog: v1.2.0…v1.2.1

Documentation

Refactors

  • client: deprecate files.retrieve_content in favour of files.content (#753) (eea5bc1)

1.2.0 (2023-11-08)

Full Changelog: v1.1.2…v1.2.0

Features

  • api: unify function types (#741) (ed16c4d)
  • client: support passing chunk size for binary responses (#747) (c0c89b7)

Bug Fixes

  • api: update embedding response object type (#739) (29182c4)
  • client: show a helpful error message if the v0 API is used (#743) (920567c)

Chores

  • internal: improve github devcontainer setup (#737) (0ac1abb)

Refactors

  • api: rename FunctionObject to FunctionDefinition (#746) (1afd138)

1.1.2 (2023-11-08)

Full Changelog: v1.1.1…v1.1.2

Bug Fixes

  • api: accidentally required params, add new models & other fixes (#729) (03c3e03)
  • asssitant_deleted -> assistant_deleted (#711) (287b51e)

Chores