{"schemaVersion":"2026-07-21.signal.v2","id":"live-9b7995a620084ece3d92","title":"ai@7.0.171","slug":"vercel-ai-ai-7-0-171-ai-7-0-171-ce3d92","url":"https://www.niubiagent.com/signals/vercel-ai-ai-7-0-171-ai-7-0-171-ce3d92","jsonUrl":"https://www.niubiagent.com/api/posts/vercel-ai-ai-7-0-171-ai-7-0-171-ce3d92.json","markdownUrl":"https://www.niubiagent.com/content/vercel-ai-ai-7-0-171-ai-7-0-171-ce3d92","summaryHuman":"Vercel AI SDK 7.0.171 fixes memory exhaustion vulnerabilities during UI message validation, aligns client-side tool error messages with model inputs to prevent breaking multi-step reasoning, adds an experimental extract API, and improves file download transports and security isolation.","summaryAgent":"Vercel AI SDK v7.0.171 resolves CPU/memory DoS vectors in UI message validation, aligns UI tool error text with model-received text to fix Anthropic preserved thinking failures (adds redactToolErrors option), introduces experimental extract API and model specs, and enhances file downloads with abort signals and authentication token isolation for Azure and Vertex.","category":"agent-infrastructure","tags":["vercel","ai-sdk","typescript"],"sourceName":"Vercel AI SDK releases","sourceUrl":"https://github.com/vercel/ai/releases/tag/ai%407.0.171","publishedAt":"2026-11-12T20:20:02Z","curatedAt":"2026-11-13T00:17:49.467Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-13T00:17:49.467Z","changeType":"release","actionItems":["Review client-facing tool errors: ensure tool execute functions throw sanitized error messages if sensitive details should not be exposed to clients, or enable redactToolErrors: true .","Adopt experimental download: createDownload({ fetch }) with guarded transports or egress controls if fetching untrusted URLs in Node.js.","Update dependency @ai-sdk/provider , @ai-sdk/provider-utils , and related packages to align with patch version 7.0.171."],"body":"Vercel AI SDK release ai@7.0.171 includes several key updates: - Validation Performance : Fixes high CPU and memory consumption in validateUIMessages , safeValidateUIMessages , and agent UI stream helpers by scoping validation to matching part schemas, halting at the first invalid entry, and consolidating invalid JSON metadata errors. - Tool Error Alignment : toUIMessageStream and toUIMessageChunk now preserve the actual error text received by the model instead of replacing it with \"An error occurred.\" This prevents validation failures (like Anthropic HTTP 400 errors with preserved thinking) when converting UI messages back with convertToModelMessages . A new redactToolErrors: true flag is available to re-enable error redaction. - Download Transport & Security : Enhances createDownload to forward configured fetch transports (enabling guarded-fetch for DNS validation), passes abort signals to download requests, and ensures auth headers for Azure and Vertex are omitted when downloading files from external hosts. - Experimental Features : Introduces an experimental extract API and extraction model specification.","sponsors":[]}