Skip to content

ai@7.0.174

Choose a tag to compare

@github-actions github-actions released this 17 Nov 18:39
· 3 commits to main since this release
f35668b

Patch Changes

  • 3bea041: feat(ai): support output in startBatch and parse it in getBatchResults
  • 30d35eb: Fix streamText passing tools: undefined to experimental_transform factories when no tools are provided. Transforms now receive an empty tool set, matching the StreamTextTransform type.
  • fab7478: Fix locked stream errors when telemetry subscribers or integrations replace a model stream whose request or response metadata requires credential redaction.
  • 10ff0b1: add extraction model support to provider registries, custom providers and string model ids
  • 718824c: Prevent excessive memory and CPU usage when validating UI messages with deeply nested provider or tool metadata. validateUIMessages, safeValidateUIMessages, and the agent UI stream helpers validated JSON values in providerMetadata, callProviderMetadata, resultProviderMetadata, toolMetadata, and citation metadata with a recursive union schema that needed several times the memory of the value, so a valid request could exhaust the memory of a worker before the model was called. These values are now validated in a single pass and are no longer copied, except to remove __proto__ keys.
  • d99098a: Centralize empty extraction value normalization in experimental_extract, preserving missing-value behavior while removing duplicated conversion from extraction providers.
  • Updated dependencies [74042c5]
  • Updated dependencies [b8c01eb]
  • Updated dependencies [10ff0b1]
  • Updated dependencies [e878ab3]
  • Updated dependencies [d99098a]
    • @ai-sdk/gateway@4.0.147
    • @ai-sdk/provider@4.0.39
    • @ai-sdk/provider-utils@5.0.82