FrameworksOfficial

AI SDK 7.0.185 adds ordered binary WebSocket frames, supplying a low-level path for raw audio

AI SDK released 7.0.185 on November 30. Through `@ai-sdk/provider-utils` 5.0.86, `connectToWebSocket` gains an optional `onMessageBinary` callback so providers can receive binary frames as bytes in arrival order with text frames. The official example is raw audio.

Why it matters

Realtime generative interfaces increasingly coordinate text control messages with binary media on one connection. Preserving frame order helps prevent interface state, transcription, or playback progress from drifting away from the media stream, while avoiding a bespoke WebSocket demultiplexer in every provider.

A closer look

The change originates in provider-utils 5.0.86 and propagates through coordinated releases including gateway 4.0.158, ai 7.0.185, workflow 2.0.117, and Vue 4.0.185. Existing text handling remains available; a provider can opt into the new callback and process received binary data as bytes.

Who this is for

Teams building realtime voice agents, multimodal WebSocket providers, streaming playback interfaces, or custom AI SDK transports.

Original sources

Revisions & corrections (1)

— Catch-up publication for the November 30 coordinated release after the official release head became visible; binary-frame behavior and low-level limitations verified from official notes.

Related events

Frameworks

AI SDK raises the Responses event limit for large generated images, fixing 'images arrived but the request failed'

On November 26, AI SDK added configurable maxEventSize handling and raised the per-event limit used by OpenAI and xAI Responses models from the 64 MiB default to 512 MiB. Because response.completed repeats every output item, several large base64 images could exceed the limit and fail the request after the images had already reached the client.

Frameworks

AI SDK harness 1.0.193 fixes host-tool error semantics and hardens slow-link and Claude Code recovery

AI SDK harness 1.0.193 changes host tool exceptions from successful-looking results to tool-error events with UI error state. Sandbox heartbeat now counts inbound bytes as activity so large events on slow links are not repeatedly disconnected and replayed. After a failed Claude Code attach, the adapter stops the recorded bridge and descendants before respawning on the same port.