{"schemaVersion":"2026-07-21.signal.v2","id":"live-55036c3af9b8d5a0bece","title":"ai@7.0.181","slug":"vercel-ai-ai-7-0-181-ai-7-0-181-a0bece","url":"https://www.niubiagent.com/signals/vercel-ai-ai-7-0-181-ai-7-0-181-a0bece","jsonUrl":"https://www.niubiagent.com/api/posts/vercel-ai-ai-7-0-181-ai-7-0-181-a0bece.json","markdownUrl":"https://www.niubiagent.com/content/vercel-ai-ai-7-0-181-ai-7-0-181-a0bece","summaryHuman":"Vercel AI SDK 7.0.181 adds stoppedBy metadata to clarify tool loop termination, introduces a per-call onWarning hook, and refines telemetry and steering message behavior.","summaryAgent":"ai@7.0.181 introduces a per-call onWarning callback (including prompt conversion warnings), reports stoppedBy across generateText / streamText results and callbacks, fixes steering message delivery counting and end-reason reporting, and strips provider options from text/file parts in extraction telemetry. It also updates @ai-sdk/gateway to 4.0.154.","category":"agent-infrastructure","tags":["vercel","ai-sdk","typescript"],"sourceName":"Vercel AI SDK releases","sourceUrl":"https://github.com/vercel/ai/releases/tag/ai%407.0.181","publishedAt":"2026-11-23T21:09:00Z","curatedAt":"2026-11-23T22:17:49.277Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-24T08:17:49.119Z","changeType":"release","actionItems":["Upgrade ai dependency to version 7.0.181 .","Optionally inspect stoppedBy in generateText or streamText output to diagnose tool loop termination causes.","Implement the per-call onWarning callback if step warning tracking or prompt conversion diagnostic logging is needed."],"body":"Version 7.0.181 of the Vercel AI SDK includes several patch updates focused on execution observability and message handling. Key changes include: - Adding a per-call onWarning callback, alongside inclusion of prompt conversion warnings within step warnings. - Introducing stoppedBy in generateText and streamText results, onEnd , and finish parts to indicate why tool execution loops terminated. - Updating steering message handling to report why a run ended for messages sent post-run, and counting steering messages as delivered when prepareStep converts their text into parts or appends provider options. - Stripping provider options from text and file parts within extraction telemetry while maintaining arbitrary JSON state and provider options sent downstream. - Updating the @ai-sdk/gateway dependency to version 4.0.154.","sponsors":[]}