github vercel/ai ai@6.0.333

latest releases: @ai-sdk/zai@3.0.56, @ai-sdk/xai@5.0.47, @ai-sdk/workflow-harness@1.0.185...
one hour ago

Patch Changes

  • 2771b61: Reduce memory and CPU usage when validating UI messages with deeply nested provider or tool metadata. validateUIMessages and safeValidateUIMessages, which the agent UI stream helpers also use, validated JSON values in providerMetadata, callProviderMetadata, resultProviderMetadata, and toolMetadata 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 [9faffa5]
  • Updated dependencies [3cf16af]
  • Updated dependencies [d59eee0]
    • @ai-sdk/gateway@3.0.238
    • @ai-sdk/provider-utils@4.0.67

Don't miss a new ai release

NewReleases is sending notifications on new releases.