OpenAI shipped Python SDK v2.32.0 on April 15th, and the headline changes are all about WebSockets. If you're building anything that uses OpenAI's Realtime API, this update is worth pulling in sooner rather than later.

What's new

The client now supports WebSocket reconnection — previously a dropped connection meant manual handling on your end. On top of that, you can now enqueue messages to a WebSocket even when the connection isn't active, which removes a class of timing bugs in realtime applications. A proper event handler implementation for WebSockets rounds out the trio. On the API side, there's a new OAuthErrorCode type and a detail field added to InputFileContent. A bug fix ensures file data is only sent as a single parameter — a subtle but potentially breaking issue if you hit it.

Why it matters

WebSocket reliability has been a known friction point for developers building on the Realtime API. Reconnection logic and offline queuing are the kind of defensive infrastructure that teams previously had to wire up themselves. Offloading that to the SDK reduces boilerplate and makes resilient realtime apps easier to build correctly from the start.

What to watch

The OAuthErrorCode addition hints at continued work on OpenAI's OAuth and identity surface — likely tied to the Agents and operator authentication flows introduced earlier this year. Worth watching if you're building on top of OpenAI's authorization layer.