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.
- May 21, 2026 · TechCrunch
Spotify launches ElevenLabs-powered audiobook creation tool for independent authors
Trust54 - May 20, 2026 · Hugging Face
Hugging Face releases six Ettin reranker models with distillation training recipe
Trust74 - May 19, 2026 · Google AI — Blog
Google announces voice features, image editor, and personal AI agent for Workspace
Trust77