Packages

@ai-sdk/provider-utils

5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed

Your version

5.0.75

5 Nov 2026Where it was published

5.0.83 is the newest release of 5.x.

In short

1 new9 internal

Release note

Patch Changes

  • provider-utils: Add an experimental_binaryFields option to createJsonResponseHandler

    Providers whose JSON responses carry large base64 strings (images, files) can list their paths, e.g. createJsonResponseHandler(schema, { experimental_binaryFields: ['images[*]'] }). The body is then read as a stream and canonical base64 strings of 64 KiB and more are decoded to Uint8Array while they arrive, instead of holding about four copies of the body in memory (chunks, concatenated bytes, text, parsed string). rawValue, validation errors and APICallError.responseBody contain a short placeholder string instead of the data. Handlers without the option are unchanged. readResponseWithSizeLimit accepts an optional onChunk callback that receives each chunk instead of the chunks being collected.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.