ai@7.0.182
Vercel AI SDK 7.0.182 fixes a bug where user interruptions during WebSocket realtime audio barge-in truncated the wrong audio item or offset.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Version 7.0.182 of the ai package introduces a patch fix for WebSocket realtime session barge-in behavior. Previously, interrupting playback triggered conversation-item-truncate against the most recently received audio item using an offset measured from total playback start rather than the specific item start. This caused provider rejections (e.g., offsets exceeding audio length when a short preamble preceded the response) or truncation of the wrong item/position. The update tracks the exact item and relative position of scheduled audio chunks, maintaining proper truncation even across playback underruns. Dependency updates include @ai-sdk/gateway@4.0.155 and @ai-sdk/provider-utils@5.0.84 .
可执行摘要
Vercel AI SDK 7.0.182 resolves WebSocket realtime audio interruption bugs where barge-in sent truncate events for the latest received chunk with global rather than item-relative offsets. Playback now tracks item-specific positions across chunks and underruns.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade ai to version 7.0.182 if using WebSocket realtime audio features with barge-in/interruption capabilities.