The Vercel AI SDK has promoted the repairText option to stable within its generateObject and streamObject functions. This update, part of the ai@7.0.39 release, includes a deprecated experimental_repairText alias to maintain backwards compatibility.
Separately, the @ai-sdk/togetherai package now enables includeUsage for TogetherAI, allowing streaming responses to report token usage. This functionality was introduced across multiple patch releases, including @ai-sdk/togetherai@1.0.50 and @ai-sdk/togetherai@2.0.68, both released on July 27.
Key Points
- The
repairTextoption is now stable forgenerateObjectandstreamObjectfunctions in the Vercel AI SDK. - A deprecated
experimental_repairTextalias is available for backwards compatibility. - The ai@7.0.39 release includes this promotion of
repairText. - The @ai-sdk/togetherai package now supports
includeUsagefor streaming responses. - This enables TogetherAI streaming responses to report token usage.
- The
includeUsagefeature for TogetherAI was released on July 27 in versions @ai-sdk/togetherai@1.0.50 and @ai-sdk/togetherai@2.0.68.
Context
According to the Vercel AI SDK changelog, the promotion of repairText to stable status is a patch change within the ai@7.0.39 release. This indicates a move to formalize a previously experimental feature. The includeUsage functionality for TogetherAI was also introduced as a patch change across multiple versions of the @ai-sdk/togetherai package.
Why It Matters
Builders using the Vercel AI SDK can now rely on the repairText option as a stable feature, potentially improving the robustness of object generation and streaming. The addition of token usage reporting for TogetherAI streaming responses provides developers with better visibility into resource consumption, which can aid in cost management and performance optimization.
What To Do
- Review the Vercel AI SDK documentation for
generateObjectandstreamObjectto understand the stablerepairTextoption. - Update to ai@7.0.39 or later to utilize the stable
repairTextfeature. - For TogetherAI users, ensure your @ai-sdk/togetherai package is updated to 1.0.50, 2.0.68, or a later version to access token usage reporting.
- Test streaming responses with TogetherAI to verify
includeUsagefunctionality and monitor token consumption.
Keep Exploring
/studio?pack=foundation /atlas/claude-family /atlas/gpt-family
