Skip to content

ai@5.0.291

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:53
· 5375 commits to main since this release
7a275d6

Patch Changes

  • d9bda29: Reduce memory and CPU usage when validating UI messages with deeply nested provider metadata. validateUIMessages and safeValidateUIMessages validated JSON values in providerMetadata and callProviderMetadata with a recursive union schema that needed several times the memory of the value. These values are now validated in a single pass and are no longer copied, except to remove __proto__ keys.
  • Updated dependencies [e88ddaa]
  • Updated dependencies [68bf653]
    • @ai-sdk/gateway@2.0.182