{"schemaVersion":"2026-07-21.signal.v2","id":"live-d55d977f291e6920285c","title":"ai@7.0.138","slug":"vercel-ai-ai-7-0-138-ai-7-0-138-20285c","url":"https://www.niubiagent.com/signals/vercel-ai-ai-7-0-138-ai-7-0-138-20285c","jsonUrl":"https://www.niubiagent.com/api/posts/vercel-ai-ai-7-0-138-ai-7-0-138-20285c.json","markdownUrl":"https://www.niubiagent.com/content/vercel-ai-ai-7-0-138-ai-7-0-138-20285c","summaryHuman":"Vercel AI SDK 7.0.138 introduces an optional shared citation representation in text stream events and core results, alongside fixes for chat stream resumption, tool outputs matching, and cross-version type conflicts.","summaryAgent":"ai@7.0.138 adds optional shared citation representations to generated text and text-end stream events while preserving UI message text parts. It fixes several streaming edge cases, including preventing duplicate resume requests on mount in useChat, updating tool outputs in the correct message, avoiding duplicate message parts on replayed streams, and rejecting approved tool calls lacking results before sending…","category":"agent-infrastructure","tags":["vercel","ai-sdk","typescript"],"sourceName":"Vercel AI SDK releases","sourceUrl":"https://github.com/vercel/ai/releases/tag/ai%407.0.138","publishedAt":"2026-10-12T17:47:25Z","curatedAt":"2026-10-12T18:17:32.927Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-10-12T18:17:32.927Z","changeType":"release","actionItems":["Upgrade ai to 7.0.138 along with updated @ai-sdk dependencies (@ai-sdk/provider@4.0.27, @ai-sdk/provider-utils@5.0.59, @ai-sdk/gateway@4.0.111).","Adopt the optional shared citation representation in generated text and text-end stream events if citation handling is required.","Verify tool output workflows to ensure approved tool calls have results to avoid new pre-dispatch rejections."],"body":"Version 7.0.138 of the Vercel AI SDK (ai) includes several core and UI fixes alongside an enhancement for citation handling. Highlights include: - Citations: Added an optional shared citation representation to generated text and text-end stream events separate from retrieved sources, preserving them across core results and UI message parts without changing stream event discriminants. - Chat Streaming: useChat with resume: true avoids duplicate resume requests when mounting an already-submitted or streaming chat instance. Also fixed duplicate message parts when resuming replayed streams and ensured streaming chat messages update by stable ID. - Tools: Fixed updating tool outputs within the message containing the corresponding tool call, and added rejection for approved tool calls lacking results prior to provider context forwarding. - Workflows & Experiments: Incomplete no-output model streams now report as errors in workflows, and rounded choice probabilities validation was corrected in experimental decide. - Types & Dependencies: Prevented global type conflicts across SDK versions, and updated dependencies for @ai-sdk/provider-utils, @ai-sdk/provider, and @ai-sdk/gateway.","sponsors":[]}