Vercel has updated its AI SDK, with ai@7.0.100 introducing new features and dependency updates across several packages. The changes include exposing typed AI SDK errors for UI transport and completion failures, as well as modifications to gateway model settings files.
Key Points
- The ai@7.0.100 package now exposes typed AI SDK errors.
- These errors are for UI transport and completion failures.
- The @ai-sdk/gateway@4.0.81 package includes updated gateway model settings files.
- Several harness packages, such as @ai-sdk/harness@1.0.110, @ai-sdk/harness-acp@1.0.48, and @ai-sdk/harness-claude-code@1.0.114, have updated dependencies on ai@7.0.100.
- Framework-specific packages like @ai-sdk/angular@3.0.100, @ai-sdk/vue@4.0.100, and @ai-sdk/svelte@5.0.100 also updated their dependencies to ai@7.0.100.
Context
According to the Vercel AI SDK Changelog, these updates were part of a release process managed by the Changesets release GitHub action. This automated process facilitates the publication of packages to npm upon merging the relevant pull request.
Why It Matters
Exposing typed errors can improve the robustness of applications built with the Vercel AI SDK by providing clearer diagnostics for developers. Updating gateway model settings files suggests ongoing refinement of how the SDK interacts with various AI models.
What To Do
- Developers using the Vercel AI SDK should update their ai package to 7.0.100.
- Review the updated error handling mechanisms for UI transport and completion failures.
- Note the dependency updates across related @ai-sdk packages, especially for framework integrations like Angular, Vue, and Svelte.
- Examine the changes in gateway model settings if directly interacting with the @ai-sdk/gateway package.
