github vercel/ai @ai-sdk/provider-utils@4.0.15

latest releases: @ai-sdk/react@2.0.133, @ai-sdk/angular@1.0.131, @ai-sdk/langchain@1.0.131...
11 hours ago

Patch Changes

  • 4024a3a: 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.

Don't miss a new ai release

NewReleases is sending notifications on new releases.