The Vercel AI SDK has released updates, including the promotion of the repairText option to stable status within its generateObject and streamObject functions. This update, noted in releases for @ai-sdk/vue@4.0.39, @ai-sdk/xai@4.0.20, and @ai-sdk/workflow@1.0.39, also introduces a deprecated experimental_repairText alias for backward compatibility.
Additionally, the SDK has added an experimental speech translation model specification, Experimental_SpeechTranslationModelV4, and an experimental_streamTranslate function for streaming speech-to-speech translation, as detailed in the @ai-sdk/vue@4.0.38 release.
Key Points
- The
repairTextoption is now stable forgenerateObjectandstreamObjectfunctions in the Vercel AI SDK. - A deprecated
experimental_repairTextalias is available for backward compatibility. - An Experimental_SpeechTranslationModelV4 specification has been added.
- The SDK includes an
experimental_streamTranslatefunction for streaming speech-to-speech translation. - The SDK avoids synthesizing client tool errors for invalid provider-executed tool calls.
Context
According to the Vercel AI SDK changelog, these updates are part of ongoing releases managed by the Changesets release GitHub action. The repairText promotion and the introduction of speech translation capabilities enhance the SDK's functionality for developers.
Why It Matters
These updates provide developers with more stable text repair capabilities for object generation and streaming, and introduce new experimental tools for speech translation. This expands the range of applications that can be built using the Vercel AI SDK, particularly for multimodal interactions.
What To Do
- Developers should update their Vercel AI SDK packages to access the latest features.
- Review the documentation for
generateObjectandstreamObjectto understand the stablerepairTextoption. - Experiment with the new Experimental_SpeechTranslationModelV4 and
experimental_streamTranslatefor speech-to-speech translation. - Note the deprecation of
experimental_repairTextand plan for its eventual removal from your codebase.
