Vercel AI SDK has announced updates across several of its packages, including @ai-sdk/voyage@2.0.14, @ai-sdk/vue@4.0.39, @ai-sdk/xai@4.0.20, and @ai-sdk/workflow@1.0.39. A key change involves the repairText option, which has been promoted to stable for use with generateObject and streamObject functions. The previous experimental_repairText alias is now deprecated, ensuring backwards compatibility.
Key Points
- The
repairTextoption is now stable forgenerateObjectandstreamObjectfunctions. - The
experimental_repairTextalias has been deprecated. - The
ai@7.0.39package has been released. - @ai-sdk/provider-utils@5.0.14 is an updated dependency across multiple packages.
- @ai-sdk/alibaba@2.0.18, @ai-sdk/openai-compatible@3.0.16, @ai-sdk/amazon-bedrock@5.0.34, @ai-sdk/openai@4.0.22, @ai-sdk/anthropic@4.0.23, and @ai-sdk/angular@3.0.39 have received patch updates.
Context
According to the Vercel AI SDK changelog, these updates were released via the Changesets release GitHub action. The promotion of repairText to stable indicates a maturation of this feature within the SDK, moving it from an experimental phase to a fully supported capability.
Why It Matters
This update provides developers using the Vercel AI SDK with a stable and officially supported method for text repair during object generation and streaming. The deprecation of the experimental alias signals a commitment to API stability and clarity, which can simplify development workflows and reduce the need for future code changes related to this functionality.
What To Do
- Review existing codebases for instances of
experimental_repairTextand update them torepairText. - Note the updated dependency versions for @ai-sdk/provider-utils and other provider-specific packages.
- Test applications utilizing
generateObjectorstreamObjectto ensure compatibility with the stablerepairTextoption. - Watch for further updates regarding deprecated aliases in future Vercel AI SDK releases.
Keep Exploring
/atlas/claude-family /atlas/gpt-family /atlas/**gemini**-family /techniques/output-schema /studio?pack=foundation
