@ai-sdk/gateway
4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed
4.0.152 is the newest release of 4.x.
In short
1 fixed
Release note
The section about @ai-sdk/gateway of a note shared by several packages.
Patch Changes
gateway: Forward server-returned warnings on language model doGenerate
generateText(...).warningsthrough the gateway provider was always an empty
array:doGeneratespread the gateway response body and then overwrote the
server'swarningswith a locally constructed empty array. The warnings the
gateway relays from the upstream provider (and gateway-originated warnings)
are now forwarded, matching the streaming path and every other modality.
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.