The Vercel AI SDK has updated its ai package to version 7.0.39, promoting the repairText option to stable status. This change affects the generateObject and streamObject functions, which now officially support repairText. The previous experimental_repairText alias is now deprecated, ensuring backwards compatibility.
Key Points
- The
repairTextoption is now stable ongenerateObjectandstreamObjectfunctions. - The
experimental_repairTextalias is deprecated but maintained for backwards compatibility. - The core
aipackage has been updated to version 7.0.39. - Dependencies such as
@ai-sdk/provider-utils(5.0.14),@ai-sdk/gateway(4.0.30),@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), and@ai-sdk/anthropic(4.0.23) have been updated. - Other packages like
@ai-sdk/angular(3.0.39),@ai-sdk/tui(1.0.40),@ai-sdk/valibot(3.0.14), and@ai-sdk/voyage(2.0.14) also received updates.
Context
According to the Vercel AI SDK changelog, these updates are part of routine releases managed by a GitHub action. The promotion of repairText 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 within object generation and streaming. The deprecation of the experimental alias signals a commitment to API stability while maintaining compatibility for existing implementations.
What To Do
- Developers should transition from
experimental_repairTexttorepairTextin theirgenerateObjectandstreamObjectcalls. - Review the updated dependency versions for
@ai-sdk/provider-utils,@ai-sdk/gateway, and other related packages. - Note the new stable status of the
repairTextoption for future development.
