Vercel has released updates to its AI SDK, including version ai@7.0.82, @ai-sdk/valibot@3.0.32, @ai-sdk/vue@4.0.82, and @ai-sdk/voyage@2.0.32. These updates focus on refining tool approval mechanisms and improving provider integrations. Additionally, the @ai-sdk/zai@2.0.0 package introduces a new provider for Z.AI.
Key Points
- Manual tool approval statuses can now include a reason, which is preserved across core, model, and UI approval requests.
- OPA (Open Policy Agent)
requires-approvaldecisions now surface their reason to human approvers. - UI request chunks serialize an optional reason, while UI messages retain it as
approval.requestReason. - The @ai-sdk/amazon-bedrock@5.0.65 update forwards the Anthropic option for disabling parallel tool use through Amazon Bedrock.
- The @ai-sdk/zai@2.0.0 package adds the Z.AI provider, supporting GLM chat completions, streaming, reasoning, tools, and multimodal inputs.
- The Z.AI provider and AI Gateway now support the GLM-5.3-Flash model.
Context
According to the Vercel AI SDK changelog, these updates aim to provide more detailed and transparent tool approval workflows. The integration improvements for Amazon Bedrock address specific functionalities for Anthropic models, ensuring compatibility with parallel tool use options. The introduction of the Z.AI provider expands the range of supported AI models and capabilities within the SDK.
Why It Matters
These updates offer developers enhanced control and visibility over tool usage within AI applications, particularly for scenarios requiring human oversight. The improved Amazon Bedrock integration streamlines the use of Anthropic models, while the new Z.AI provider broadens the choice of available models and features, potentially enabling new application types.
What To Do
- Review the updated documentation for manual tool approval processes to understand how to incorporate reasons into approval statuses.
- Developers using Anthropic models via Amazon Bedrock should note the change regarding parallel tool use options.
- Explore the new Z.AI provider to assess its GLM chat completions, streaming, reasoning, tools, and multimodal input capabilities for new projects.
- Test the GLM-5.3-Flash model support within the Z.AI provider and AI Gateway for relevant applications.
