v2.32.0

openai-python Releases / 4/16/2026

📰 NewsDeveloper Stack & InfrastructureTools & Practical Usage

Key Points

  • openai-python v2.32.0(2026-04-15)では、InputFileContent の詳細化や OAuthErrorCode 型の追加など、API周りの型・情報が拡充されています。
  • WebSocket対応が強化され、イベントハンドラ実装、未接続時でもキュー投入を許可、再接続(reconnection)対応が追加されています。
  • ファイル送信時に「ファイルデータが1パラメータとしてのみ送られる」ことを保証するバグ修正が含まれています。
  • 公式ドキュメントの例が改善され、利用手順の分かりやすさが向上しています。

2.32.0 (2026-04-15)

Full Changelog: v2.31.0...v2.32.0

Features

  • api: Add detail to InputFileContent (60de21d)
  • api: add OAuthErrorCode type (0c8d2c3)
  • client: add event handler implementation for websockets (0280d05)
  • client: allow enqueuing to websockets even when not connected (67aa20e)
  • client: support reconnection in websockets (eb72a95)

Bug Fixes

  • ensure file data are only sent as 1 parameter (c0c2ecd)

Documentation