Repository navigation
chore(deps): update dependency ai to v7.0.173 - #42
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/ai-7.x
branch
4 times, most recently
from
November 13, 2026 02:08
75e1f7b to
f125256
Compare
renovate
Bot
force-pushed
the
renovate/ai-7.x
branch
2 times, most recently
from
November 13, 2026 07:45
80b11ed to
e985978
Compare
renovate
Bot
force-pushed
the
renovate/ai-7.x
branch
3 times, most recently
from
November 13, 2026 22:23
f65413c to
0416978
Compare
renovate
Bot
force-pushed
the
renovate/ai-7.x
branch
from
November 14, 2026 05:29
0416978 to
6b815b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.0.169→7.0.173Release Notes
vercel/ai (ai)
v7.0.173Compare Source
Patch Changes
3c09e00: Prevent in-place schema validation or input refinement from changing approved tool arguments during approval replay.f43ee39: fix(workflow): log the default step limit warning whenWorkflowAgent.generate()stops at the default limit.7ce7ffc: fix(workflow): log provider warnings inWorkflowAgentWorkflowAgent.generate()andWorkflowAgent.stream()now log the warnings of every model call through the AI SDK warning logger, likeToolLoopAgent. TheAI_SDK_LOG_WARNINGSglobal controls the output.f6809e3: fix(workflow): align theprepareStepresults ofWorkflowAgentwithToolLoopAgent. Returnedinstructions(or the deprecatedsystem) replace the instructions of the step and carry forward to later steps, returnedproviderOptionsare merged with the agent options, and returnedheadersare merged over the headers of the call.2559173: feat(workflow): supporttoolApprovalinWorkflowAgentWorkflowAgentaccepts atoolApprovalconfiguration in the constructor and pergenerate()orstream()call. The configuration takes precedence over a tool'sneedsApprovalsetting, and its functions run in workflow context, outside of the durable model steps. Calls that the configuration approves run in the same step, and calls that it denies receive anexecution-deniedtool result without pausing the workflow.f1de9cb: feat(workflow): support thetimeoutobject inWorkflowAgentgenerate()andstream()accepttimeout: { totalMs, stepMs, firstChunkMs, chunkMs }in addition to a number.stepMslimits each model call. Instream(),firstChunkMsandchunkMslimit the wait for model output. Invalid timeout values are rejected with anInvalidArgumentError. A timeout now also ends a model step when the provider stream ignores the abort signal.Updated dependencies [
9baa2d0]v7.0.172Compare Source
Patch Changes
79d2004: Require an explicitexperimental_downloadhook for remote file URLs inexperimental_extractandexperimental_decideinstead of silently downloading through global fetch. Callers can usecreateDownload({ fetch })with a DNS-protected transport for untrusted URLs; inline file data continues to work without a hook.6d50947]v7.0.171Compare Source
Patch Changes
11323f9: Prevent excessive memory and CPU usage when validating malformed UI messages.validateUIMessages,safeValidateUIMessages, and the agent UI stream helpers reported the issues of every part schema for every invalid part, so a small request with many malformed parts could exhaust memory. Each part is now validated against the schemas for its type only, validation stops at the first invalid message or part, and an invalid JSON value in provider or tool metadata is reported as a single issue.2ebc78b: Forward the provider's configured fetch transport when downloading file inputs. Add afetchoption tocreateDownloadso core downloads can also useguarded-fetchfor opt-in DNS validation on Node.js. The function returned bycreateDownloadcan now also be passed asexperimental_downloadtogenerateTextandstreamText, andexperimental_downloadnow also handles generated file URLs returned by the model, so one hook covers all core downloads. Document that the default URL checks do not resolve DNS and recommend the guarded transport or network egress controls for untrusted URLs.Keep Azure image and Vertex tool-result downloads separate from provider authentication wrappers so file hosts never receive Azure bearer tokens or Vertex Express Mode API keys.
Pass the call's abort signal to custom download requests, including prompt assets and generated files, so
experimental_download: createDownload({ fetch })preserves cancellation and timeouts.cb4fa52: add experimental extract api and extraction model specceeee29: Warn when a UI message stream sends a tool error text that differs from the text the model received and then sends reasoning from a later step. By default,toUIMessageStreamsends "An error occurred." to the client for a failed tool call, while the model receives the full error text during a multi-step call. Converting the stored UI messages back withconvertToModelMessagesthen changes the tool result, and models that bind reasoning to the preceding messages (for example Anthropic models with preserved thinking) reject the request. The request still fails after this change; the warning and the updated documentation explain the cause and the available options.1a94af3: Send the error text of failed tool calls to the client as the model received it.toUIMessageStreamandtoUIMessageChunkreplaced the error text of failed tool calls with "An error occurred." by default. The model had already received the full text during a multi-step call, so UI messages that were converted back withconvertToModelMessagescontained a different tool result. Models that bind reasoning to the preceding messages rejected that history (for example Anthropic models with preserved thinking, with HTTP 400 "The block is bound to a different conversation"), and other models continued from an error they never received.UI messages now keep the model's error text for tool execution errors and invalid tool calls. This text reaches the client. To keep details away from the model and the client, throw an error with a safe message from the tool's
executefunction. The error text of an invalid tool call contains the generated input, the validation messages of the input schema, or the names of the available tools;executedoes not run for it. To restore the previous behavior, set the newredactToolErrors: trueoption. A providedonErrorkeeps handling failed tool calls unless you setredactToolErrors: false. Stream errors are still masked by default.Updated dependencies [
640569d]Updated dependencies [
4e43721]Updated dependencies [
2ebc78b]Updated dependencies [
cb4fa52]v7.0.170Compare Source
Patch Changes
91a67c2: Fix excessive CPU usage when streaming long arrays withOutput.arrayorstreamObject. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.84b1cb0: Cancel pending send-now operations when a later stop or dispose occurs, preventing an abandoned chat's queued messages and history from being sent through a replacement transport.eaeb37e]Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.