AI SDK 7.0.89

7.0.89
Added 8
  • Extend the FilesV4 interface with optional getFileMetadata, downloadFile (streaming), and deleteFile operations
  • Add abortSignal and headers call options to FilesV4 interface
  • Add { type: 'stream' } upload data variant to FilesV4 interface
  • Expose byteSize, createdAt, and expiresAt in upload results
  • Surface byteSize, createdAt, and expiresAt through the core uploadFile() helper
  • Add postMultipartStreamToApi function for streaming multipart uploads with deterministic part ordering and failure-path stream teardown
  • Add deleteFromApi function to provider-utils
  • Add createBinaryStreamResponseHandler function to provider-utils
Changed 1
  • Forward abortSignal and headers in the core uploadFile() helper

From AI SDK

Patch Changes
  • 5190b67: feat(provider): extend the FilesV4 interface with optional getFileMetadata, downloadFile (streaming), and deleteFile operations, plus abortSignal/headers call options and a { type: 'stream' } upload data variant; upload results now expose byteSize, createdAt, and expiresAt (also surfaced by the core uploadFile() helper, which now forwards abortSignal/headers); add postMultipartStreamToApi (streaming multipart uploads with deterministic part ordering and failure-path stream teardown), deleteFromApi, and createBinaryStreamResponseHandler to provider-utils
  • Updated dependencies [5190b67]
    • @ai-sdk/provider@4.0.10
    • @ai-sdk/provider-utils@5.0.35
    • @ai-sdk/gateway@4.0.71
View original

Upgraded? How did it go?

Discussion