Skip to content

ai@5.0.290

Choose a tag to compare

@github-actions github-actions released this 13 Nov 23:43
· 5340 commits to main since this release
39a7a19

Patch Changes

  • 4107bc6: 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.
  • ec9c246: Prevent excessive memory and CPU usage when validating malformed UI messages. validateUIMessages and safeValidateUIMessages 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 metadata is reported as a single issue.
  • Updated dependencies [09657bb]
  • Updated dependencies [f046ed8]
    • @ai-sdk/gateway@2.0.181