# ai@7.0.181

Category: agent-infrastructure
Published: 2026-11-23T21:09:00Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/ai%407.0.181)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-24T08:17:49.119Z
Tags: vercel, ai-sdk, typescript

## Human Summary
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.

## Agent Summary
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.

## 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.

## Recommended actions
- 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.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.