The Vercel AI SDK has updated its packages, including @ai-sdk/vercel@3.0.16, @ai-sdk/workflow@1.0.39, @ai-sdk/voyage@2.0.14, and @ai-sdk/vue@4.0.39. A key change across these updates is the promotion of the repairText option to stable status within the generateObject and streamObject functions.
Key Points
- The
repairTextoption is now stable forgenerateObjectandstreamObjectfunctions. - An
experimental_repairTextalias has been introduced for backward compatibility. - The core
aipackage has been updated to version 7.0.39. @ai-sdk/provider-utilsis updated to version 5.0.14.@ai-sdk/alibabais updated to version 2.0.18.@ai-sdk/openai-compatibleis updated to version 3.0.16.@ai-sdk/amazon-bedrockis updated to version 5.0.34.@ai-sdk/openaiis updated to version 4.0.22.@ai-sdk/anthropicis updated to version 4.0.23.@ai-sdk/angularis updated to version 3.0.39.
Context
According to the Vercel AI SDK changelog, these updates were initiated by the Changesets release GitHub action. The repairText option's promotion to stable indicates a maturation of this feature within the SDK, suggesting it has undergone sufficient testing and is now considered ready for general use.
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 inclusion of a deprecated alias ensures that existing implementations continue to function while encouraging migration to the stable option.
What To Do
- Review your existing code for uses of
experimental_repairTextand plan to migrate to the stablerepairTextoption. - Update your Vercel AI SDK packages to the latest versions to access these changes.
- Test the
repairTextoption with yourgenerateObjectandstreamObjectimplementations. - Note the updated dependency versions for various providers and utilities within the SDK.