github vercel/ai ai@6.0.331

latest releases: @ai-sdk/zai@3.0.53, @ai-sdk/xai@5.0.44, @ai-sdk/workflow-harness@1.0.182...
58 minutes ago

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

Don't miss a new ai release

NewReleases is sending notifications on new releases.