Skip to content

ai@6.0.331

Choose a tag to compare

@github-actions github-actions released this 12 Nov 20:16
· 3479 commits to main since this release
e886c10

Patch Changes

  • 60dc26c: Keep failed tool call error text consistent with the model's message history by default. Set redactToolErrors: true to replace it with the result of onError.
  • 9e8f918: 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.
  • Updated dependencies [271ca50]
  • Updated dependencies [f0a7beb]
    • @ai-sdk/gateway@3.0.236