@ai-sdk/openai 4.0.70 → 4.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2392,10 +2392,10 @@ var OpenAIImageModel = class _OpenAIImageModel {
2392
2392
  })
2393
2393
  ],
2394
2394
  { type: file.mediaType }
2395
- ) : downloadBlob(file.url)
2395
+ ) : downloadBlob(file.url, { abortSignal })
2396
2396
  )
2397
2397
  ),
2398
- mask: mask != null ? await fileToBlob(mask) : void 0,
2398
+ mask: mask != null ? await fileToBlob(mask, abortSignal) : void 0,
2399
2399
  n,
2400
2400
  size,
2401
2401
  quality: openaiOptions2.quality,
@@ -2532,10 +2532,10 @@ function distributeTokenDetails(details, index, total) {
2532
2532
  }
2533
2533
  return result;
2534
2534
  }
2535
- async function fileToBlob(file) {
2535
+ async function fileToBlob(file, abortSignal) {
2536
2536
  if (!file) return void 0;
2537
2537
  if (file.type === "url") {
2538
- return downloadBlob(file.url);
2538
+ return downloadBlob(file.url, { abortSignal });
2539
2539
  }
2540
2540
  const data = file.data instanceof Uint8Array ? file.data : convertBase64ToUint8Array(file.data);
2541
2541
  return new Blob([data], { type: file.mediaType });