Patch Changes
-
2ebc78b: Forward the provider's configured fetch transport when downloading file inputs. Add a
fetchoption tocreateDownloadso core downloads can also useguarded-fetchfor opt-in DNS validation on Node.js. The function returned bycreateDownloadcan now also be passed asexperimental_downloadtogenerateTextandstreamText, andexperimental_downloadnow also handles generated file URLs returned by the model, so one hook covers all core downloads. Document that the default URL checks do not resolve DNS and recommend the guarded transport or network egress controls for untrusted URLs.Keep Azure image and Vertex tool-result downloads separate from provider authentication wrappers so file hosts never receive Azure bearer tokens or Vertex Express Mode API keys.
Pass the call's abort signal to custom download requests, including prompt assets and generated files, so
experimental_download: createDownload({ fetch })preserves cancellation and timeouts. -
Updated dependencies [11323f9]
-
Updated dependencies [2ebc78b]
-
Updated dependencies [2ebc78b]
-
Updated dependencies [cb4fa52]
-
Updated dependencies [ceeee29]
-
Updated dependencies [1a94af3]
- ai@7.0.171
- @ai-sdk/provider-utils@5.0.80