ai@7.0.179
Vercel AI SDK 7.0.179 adds experimental Gateway support for continuous Live models over WebSocket, enabling direct client connections without an application relay.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The ai@7.0.179 release updates the Gateway module to support Live models over WebSocket. Specifically, gateway.experimental realtime() now handles continuous Live models such as openai/gpt-live-1 and openai/gpt-live-1.1, routing them to the Gateway Live route using the normalized Live protocol (including session-start, PCM16 audio, context-append, and session-close with final usage). Users can pass { api: 'live' } or { api: 'realtime' } to control routing. Additionally, gateway.experimental realtime.getToken() generates Live-bound client secrets, and experimental useRealtime can now connect directly to the provider using short-lived tokens for continuous models that support client-secret-websocket connections, bypassing the need for an application relay. The release also updates @ai-sdk/gateway to 4.0.152.
可执行摘要
ai@7.0.179 introduces support for continuous Live models (openai/gpt-live-1 and openai/gpt-live-1.1) via gateway.experimental realtime() using a normalized Live protocol over WebSocket, adds Live token minting via getToken(), and supports direct client-to-provider connections via short-lived tokens.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update to ai@7.0.179 and @ai-sdk/gateway@4.0.152 if using continuous Live models over WebSocket.
- Verify routing configuration using { api: 'live' } or { api: 'realtime' } when initializing Live models.
- Optionally migrate continuous WebSocket sessions from application relays to direct client-to-provider connections using getToken() and experimental useRealtime.