Agent 基础设施官方发布自动监测

ai@7.0.171

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.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

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.

Agent 解析

可执行摘要

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.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • 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.
分类

标签与路由

vercelai-sdktypescript
相关信号

继续阅读