@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
5.0.83 is the newest release of 5.x.
In short
1 new9 internal
Release note
Patch Changes
provider-utils: Add an
experimental_binaryFieldsoption tocreateJsonResponseHandlerProviders 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 toUint8Arraywhile they arrive, instead of holding about four copies of the body in memory (chunks, concatenated bytes, text, parsed string).rawValue, validation errors andAPICallError.responseBodycontain a short placeholder string instead of the data. Handlers without the option are unchanged.readResponseWithSizeLimitaccepts an optionalonChunkcallback 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.