Vercel has updated its AI SDK to version ai@7.0.94, as detailed in recent changelog entries for @ai-sdk/harness-cursor@1.0.16, @ai-sdk/harness-cline@1.0.30, @ai-sdk/harness-fx@1.0.16, and @ai-sdk/harness-pi@1.0.105. These updates include new features and fixes aimed at improving model interaction and reliability within the SDK.
Key Points
- The AI SDK now supports per-request models when performing batch operations, identified by change
a4ba394. - Tool choices are now enforced in
streamTextfunctionality, a fix noted by change36b3364. - The SDK retries unclassified empty image results and preserves retry-attempt accounting, according to change
45099da. - Provider-independent result retryability classification has been added.
- Prompt blocks for Google and Google Vertex are now marked as terminal.
- Dependencies for
@ai-sdk/provider,@ai-sdk/gateway,@ai-sdk/provider-utils,@ai-sdk/alibaba, and@ai-sdk/amazon-bedrockhave been updated.
Context
According to Vercel's changelog, these updates are part of routine patch changes to the AI SDK. The changes are managed through a Changesets release GitHub action, which automates the publishing of packages to npm upon merging. This process ensures continuous integration and delivery of updates to the SDK.
Why It Matters
These updates enhance the flexibility and robustness of the Vercel AI SDK. Developers can now specify different models for individual requests within a batch, which could optimize resource use and performance for varied tasks. Improved retry mechanisms for image results and enforced tool choices contribute to more reliable and predictable AI application behavior.
What To Do
- Review the Vercel AI SDK documentation for details on implementing per-request models in batch operations.
- Test the
streamTextfunction with tool choices to observe the enforced behavior. - Note the updated retry logic for image results, especially for applications handling image-based AI outputs.
- Check for updated dependency versions for
@ai-sdk/provider@4.0.11,@ai-sdk/gateway@4.0.76,@ai-sdk/provider-utils@5.0.37,@ai-sdk/alibaba@2.0.42, and@ai-sdk/amazon-bedrock@5.0.77in your projects.
Keep Exploring
/studio?pack=foundation /techniques/output-schema /techniques/ptcf
