@ai-sdk/provider-utils 5.0.62 → 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/CHANGELOG.md +16 -0
- package/dist/experimental-decision/index.d.ts +1 -1
- package/dist/experimental-decision/index.d.ts.map +1 -1
- package/dist/experimental-decision/index.js +3 -2
- package/dist/experimental-decision/index.js.map +1 -1
- package/dist/experimental-evaluation/index.d.ts +1 -1
- package/dist/experimental-evaluation/index.d.ts.map +1 -1
- package/dist/experimental-evaluation/index.js +3 -2
- package/dist/experimental-evaluation/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/decision-language-model.ts +4 -1
- package/src/read-response-with-size-limit.ts +8 -1
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.
|
|
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 {
|