ai@7.0.163
Vercel AI SDK 7.0.163 improves transcription, telemetry, and streaming by introducing typed heartbeat parts, native URL transcription for Groq, and fixes for union schemas and legacy media URLs.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Vercel AI SDK patch release 7.0.163 introduces several key enhancements and bug fixes across core capabilities: - Streaming & Types: Added typed streaming heartbeat parts ( ping union variant), requiring updates to exhaustive stream-part switches. Type inference now properly handles schema unions passed to Output.object and Output.array. Stream steering messages are now streamed to the UI and retained in converted messages. - Audio & Transcription: Native URL transcription is now supported (Groq leverages this directly with a redirect fallback). Transcription telemetry event fields ( byteLength , mediaType ) may now be undefined for native fetches. Audio types are inferred from bytes when content-type headers are generic. Word timings can be exposed separately from segments with granular timestamps. - Provider & Realtime Support: Added provider-owned realtime transports ( createTransport ) and experimental RealtimeModelV4 server-side types. Google stream ordering for text and complete function calls (including standalone thought signatures) is improved and cross-provider history replay through Anthropic/Bedrock is sanitized. - Media & Storage: Legacy file-url and image-url tool result types are properly downloaded/inlined, and direct video delivery to caller-managed storage is represented via an uploadedVideos outcome. - Telemetry: Respects recordInputs and recordOutputs flags, omitting raw span results and nested content when disabled. Sanitized HTTP origins and endpoint metadata are reported for OpenAI Chat, Azure Chat, and Bedrock Mantle.
可执行摘要
Vercel AI SDK 7.0.163 adds typed ping parts to streaming unions, native URL audio transcription support (with Groq integration), provider-owned realtime transports, union output schema inference, and refined telemetry sanitization/filtering.
- Agent 实用度
- 72/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update exhaustive switch statements over stream parts to handle the new ping union variant.
- Verify telemetry consumers safely handle potentially undefined TranscriptionEndEvent.audio.byteLength and audio.mediaType when native URL transcription is used.
- Inspect custom video handling workflows to use uploadedVideos when models deliver directly to caller-managed storage.