Skip to content

ai@5.0.130

Choose a tag to compare

released this 12 Feb 22:39
· 5479 commits to main since this release
ca7f69e

Patch Changes

  • 20565b8: security: prevent unbounded memory growth in download functions

    The download() and downloadBlob() functions now enforce a default 2 GiB size limit when downloading from user-provided URLs. Downloads that exceed this limit are aborted with a DownloadError instead of consuming unbounded memory and crashing the process. The abortSignal parameter is now passed through to fetch() in all download call sites.

    Added download option to transcribe() and experimental_generateVideo() for providing a custom download function. Use the new createDownload({ maxBytes }) factory to configure download size limits.

  • Updated dependencies [20565b8]

    • @ai-sdk/provider-utils@3.0.21
    • @ai-sdk/gateway@2.0.36