ai@7.0.169
Vercel AI SDK released ai@7.0.169, migrating internal schemas to Zod Mini for smaller bundle sizes and refining useChat queue behavior for tool approvals and async execution checks.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The patch release ai@7.0.169 introduces two main changes along with dependency updates for @ai-sdk/provider-utils and @ai-sdk/gateway. First, internal validation schemas have been transitioned to Zod Mini to reduce bundle size without altering public message schemas' classic methods, error output, or compatibility across supported Zod 3 and Zod 4 versions. Second, useChat queue management was improved to retain request options when a tool approval is sent first, and to hold queue processing while an asynchronous sendAutomaticallyWhen decision completes.
可执行摘要
ai@7.0.169 replaces internal schemas with Zod Mini to minimize bundle size while retaining Zod 3/4 compatibility for public message schemas. It also preserves request options during tool approvals in useChat queues and pauses the queue during async sendAutomaticallyWhen evaluations.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade the ai package to version 7.0.169 along with related dependencies @ai-sdk/provider-utils and @ai-sdk/gateway.
- Verify useChat workflows that rely on tool approvals and asynchronous sendAutomaticallyWhen conditions.