release
OpenAI SDK v2.31.0
April 8, 2026
v2.31.0, released 2026-04-08, adds a `phase` field to conversation messages, support for short-lived tokens, raw data over websockets, and an indices array format for query/form serialization, while also briefly adding then removing `web_search_call.results` from `ResponseIncludable`. The update matters because it expands client and API capabilities and fixes a query-parameter merging bug that could overwrite hardcoded params, with the changelog also noting docs updates for vector store file parameters and test dependency bumps to steady v0.20.2.
2.31.0 (2026-04-08) Full Changelog: v2.30.0...v2.31.0 Features api: add phase field to conversations message ( 3e5834e ) api: add web_search_call.results to ResponseIncludable type ( ffd8741 ) client: add support for short-lived tokens ( #1608 ) ( 22fe722 ) client: support sending raw data over websockets ( f1bc52e ) internal: implement indices array format for query and form serialization ( 49194cf ) Bug Fixes client: preserve hardcoded query params when merging with user params ( 92e109c ) types: remove web_search_call.results from ResponseIncludable ( d3cc401 ) Chores tests: bump steady to v0.20.1 ( d60e2ee ) tests: bump steady to v0.20.2 ( 6508d47 ) Documentation api: update file parameter descriptions in vector_stores files and file_batches ( a9e7ebd )
Source: github.com