Vercel AI SDK has released updates that include promoting the repairText option to stable within its generateObject and streamObject functions. This update, part of the ai@7.0.39 release, also introduces a deprecated experimental_repairText alias for backward compatibility, according to the Vercel AI SDK Changelog.
Separately, the ai@7.0.38 release added an experimental speech translation model specification, Experimental_SpeechTranslationModelV4, and an experimental_streamTranslate function for streaming speech-to-speech translation. This release also addressed client tool errors for invalid provider-executed tool calls.
Key Points
- The
repairTextoption is now stable forgenerateObjectandstreamObjectin the Vercel AI SDK. - A deprecated
experimental_repairTextalias is available for backward compatibility. - Vercel AI SDK introduced
Experimental_SpeechTranslationModelV4for speech translation. - An
experimental_streamTranslatefunction supports streaming speech-to-speech translation. - The Vercel AI SDK also updated its handling of client tool errors for invalid provider-executed tool calls.
Context
According to the Vercel AI SDK Changelog, these updates are part of ongoing releases for the SDK, with ai@7.0.39 focusing on the repairText promotion and ai@7.0.38 introducing the experimental speech translation features. These changes affect various packages within the SDK, including @ai-sdk/alibaba, @ai-sdk/amazon-bedrock, @ai-sdk/anthropic, @ai-sdk/openai, and @ai-sdk/angular, among others.
Why It Matters
The promotion of repairText to stable indicates increased reliability for developers working with object generation and streaming, potentially reducing the need for manual text correction. The introduction of experimental speech translation capabilities expands the SDK's multimodal functionalities, offering new avenues for integrating voice-based interactions into applications.
What To Do
- Developers should update their Vercel AI SDK packages to
ai@7.0.39to utilize the stablerepairTextoption. - Review the documentation for
generateObjectandstreamObjectto understand the stablerepairTextimplementation. - Explore the
Experimental_SpeechTranslationModelV4andexperimental_streamTranslatefunctions for new speech-to-speech translation capabilities. - Note the
experimental_repairTextalias for managing backward compatibility in existing projects.
