@ai-sdk/gateway@2.0.151
·
4086 commits
to main
since this release
Patch Changes
-
0d4a425: fix(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.