@ai-sdk/amazon-bedrock 5.0.0-beta.20 → 5.0.0-beta.21
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 +10 -0
- package/dist/anthropic/index.js +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/convert-to-bedrock-chat-messages.ts +7 -0
package/dist/index.mjs
CHANGED
|
@@ -380,6 +380,7 @@ import {
|
|
|
380
380
|
} from "@ai-sdk/provider";
|
|
381
381
|
import {
|
|
382
382
|
convertToBase64,
|
|
383
|
+
isProviderReference,
|
|
383
384
|
parseProviderOptions,
|
|
384
385
|
stripFileExtension
|
|
385
386
|
} from "@ai-sdk/provider-utils";
|
|
@@ -457,6 +458,11 @@ async function convertToBedrockChatMessages(prompt, isMistral = false) {
|
|
|
457
458
|
break;
|
|
458
459
|
}
|
|
459
460
|
case "file": {
|
|
461
|
+
if (isProviderReference(part.data)) {
|
|
462
|
+
throw new UnsupportedFunctionalityError2({
|
|
463
|
+
functionality: "file parts with provider references"
|
|
464
|
+
});
|
|
465
|
+
}
|
|
460
466
|
if (part.data instanceof URL) {
|
|
461
467
|
throw new UnsupportedFunctionalityError2({
|
|
462
468
|
functionality: "File URL data"
|
|
@@ -2057,7 +2063,7 @@ import {
|
|
|
2057
2063
|
import { AwsV4Signer } from "aws4fetch";
|
|
2058
2064
|
|
|
2059
2065
|
// src/version.ts
|
|
2060
|
-
var VERSION = true ? "5.0.0-beta.
|
|
2066
|
+
var VERSION = true ? "5.0.0-beta.21" : "0.0.0-test";
|
|
2061
2067
|
|
|
2062
2068
|
// src/bedrock-sigv4-fetch.ts
|
|
2063
2069
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|