Vercel AI SDK has announced an update promoting the repairText option to stable status. This change applies to the generateObject and streamObject functions within the SDK. A deprecated alias, experimental_repairText, has been introduced for backward compatibility.
Key Points
- The
repairTextoption is now stable for generateObject and streamObject functions. - A deprecated alias, experimental_repairText, is available for backward compatibility.
- This update is part of the ai@7.0.39 release.
- 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, @ai-sdk/anthropic@4.0.23, and @ai-sdk/angular@3.0.39 have been updated.
Context
According to the Vercel AI SDK changelog, this promotion of repairText to stable status is a patch change. The update affects various SDK packages, including @ai-sdk/valibot@3.0.14, @ai-sdk/workflow@1.0.39, @ai-sdk/voyage@2.0.14, and @ai-sdk/vue@4.0.39, all of which list the same core change regarding repairText and updated dependencies.
Why It Matters
This update indicates a maturation of the text repair functionality within the Vercel AI SDK, moving it from an experimental feature to a stable one. Developers can now rely on repairText for object generation and streaming with increased confidence in its stability and continued support.
What To Do
- Review existing codebases for usage of
experimental_repairText. - Update implementations to use the stable
repairTextoption. - Note the updated dependency versions for various AI SDK packages.
- Consult the Vercel AI SDK documentation for detailed usage of
repairTextwithgenerateObjectandstreamObject.
