ai 5.1.0-beta.8 → 5.1.0-beta.9
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 +14 -0
- package/dist/index.d.mts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +7 -7
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -7
- package/dist/internal/index.mjs.map +1 -1
- package/dist/test/index.d.mts +19 -19
- package/dist/test/index.d.ts +19 -19
- package/dist/test/index.js +10 -10
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +8 -8
- package/dist/test/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -679,7 +679,7 @@ import {
|
|
|
679
679
|
} from "@ai-sdk/provider-utils";
|
|
680
680
|
|
|
681
681
|
// src/version.ts
|
|
682
|
-
var VERSION = true ? "5.1.0-beta.
|
|
682
|
+
var VERSION = true ? "5.1.0-beta.9" : "0.0.0-test";
|
|
683
683
|
|
|
684
684
|
// src/util/download/download.ts
|
|
685
685
|
var download = async ({ url }) => {
|
|
@@ -972,12 +972,12 @@ async function downloadAssets(messages, download2, supportedUrls) {
|
|
|
972
972
|
}));
|
|
973
973
|
const downloadedFiles = await download2(plannedDownloads);
|
|
974
974
|
return Object.fromEntries(
|
|
975
|
-
downloadedFiles.
|
|
976
|
-
(
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
975
|
+
downloadedFiles.map(
|
|
976
|
+
(file, index) => file == null ? null : [
|
|
977
|
+
plannedDownloads[index].url.toString(),
|
|
978
|
+
{ data: file.data, mediaType: file.mediaType }
|
|
979
|
+
]
|
|
980
|
+
).filter((file) => file != null)
|
|
981
981
|
);
|
|
982
982
|
}
|
|
983
983
|
function convertPartToLanguageModelPart(part, downloadedAssets) {
|
|
@@ -6318,7 +6318,7 @@ async function generateImage({
|
|
|
6318
6318
|
headers
|
|
6319
6319
|
}) {
|
|
6320
6320
|
var _a17, _b;
|
|
6321
|
-
if (model.specificationVersion !== "
|
|
6321
|
+
if (model.specificationVersion !== "v3") {
|
|
6322
6322
|
throw new UnsupportedModelVersionError({
|
|
6323
6323
|
version: model.specificationVersion,
|
|
6324
6324
|
provider: model.provider,
|