OpenAI Python Client Library Adds WebSocket Reconnection and OAuth Support
Version 2.32.0 of the openai-python package introduces event handler implementation for WebSocket connections, automatic reconnection capabilities, and new OAuth error handling types.
1 source
- OpenAI released v2.32.0 of its official Python SDK, adding WebSocket event handler implementation and reconnection support
- The update includes OAuth error code type support and improved file handling to ensure file data is sent as a single parameter
- Documentation examples were also improved in this release
OpenAI released version 2.32.0 of its Python SDK on April 15, 2026, expanding the client library's capabilities for real-time communication and authentication scenarios. The release note indicates the package now includes event handler implementation for WebSocket connections and support for automatic reconnection when connections drop, addressing reliability concerns for long-lived applications.
Additional features in the update extend to authentication infrastructure, with the introduction of new OAuthErrorCode type definitions. The release also refined how file data is transmitted, enforcing that file data be sent as a single parameter to prevent data duplication or malformed requests.
Documentation improvements accompanying the release suggest the team updated code examples to reflect the new capabilities, though specific details about which examples changed were not provided in the release notes.
- Jul 19, 2026 · TechCrunch — AI
Nonprofit Current AI launches open public AI infrastructure projects with $3.2M in grants
Trust76 - Jul 19, 2026 · AWS — Machine Learning Blog
Smartsheet deploys remote Model Context Protocol server on AWS to connect AI agents to enterprise data
Trust79 - Jul 19, 2026 · Simon Willison — everything
Interactive SQLite Query Explainer runs in-browser with annotated query plans
Trust84