@ai-sdk/provider-utils 5.0.63 → 5.0.64

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.
package/dist/index.js CHANGED
@@ -606,7 +606,7 @@ function handleFetchError({ error, url, requestBodyValues }) {
606
606
  }
607
607
  //#endregion
608
608
  //#region src/version.ts
609
- const VERSION = "5.0.63";
609
+ const VERSION = "5.0.64";
610
610
  //#endregion
611
611
  //#region src/normalize-headers.ts
612
612
  /**
@@ -1644,7 +1644,7 @@ async function readResponseWithSizeLimit({ response, url, maxBytes = DEFAULT_MAX
1644
1644
  url,
1645
1645
  message: `Download of ${url} exceeded maximum size of ${maxBytes} bytes.`
1646
1646
  });
1647
- chunks.push(value);
1647
+ chunks.push(value.byteLength < value.buffer.byteLength ? new Uint8Array(value) : value);
1648
1648
  }
1649
1649
  } finally {
1650
1650
  try {