@ai-sdk/amazon-bedrock 4.0.0-beta.32 → 4.0.0-beta.34

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.0-beta.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9354297]
8
+ - @ai-sdk/anthropic@3.0.0-beta.30
9
+
10
+ ## 4.0.0-beta.33
11
+
12
+ ### Patch Changes
13
+
14
+ - 3794514: feat: flexible tool output content support
15
+ - Updated dependencies [3794514]
16
+ - @ai-sdk/provider-utils@4.0.0-beta.19
17
+ - @ai-sdk/anthropic@3.0.0-beta.29
18
+ - @ai-sdk/provider@3.0.0-beta.8
19
+
3
20
  ## 4.0.0-beta.32
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils8 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "4.0.0-beta.32" : "0.0.0-test";
33
+ var VERSION = true ? "4.0.0-beta.34" : "0.0.0-test";
34
34
 
35
35
  // src/bedrock-provider.ts
36
36
  var import_internal2 = require("@ai-sdk/anthropic/internal");
@@ -423,7 +423,7 @@ async function convertToBedrockChatMessages(prompt) {
423
423
  switch (contentPart.type) {
424
424
  case "text":
425
425
  return { text: contentPart.text };
426
- case "media":
426
+ case "image-data":
427
427
  if (!contentPart.mediaType.startsWith("image/")) {
428
428
  throw new import_provider3.UnsupportedFunctionalityError({
429
429
  functionality: `media type: ${contentPart.mediaType}`
@@ -438,6 +438,11 @@ async function convertToBedrockChatMessages(prompt) {
438
438
  source: { bytes: contentPart.data }
439
439
  }
440
440
  };
441
+ default: {
442
+ throw new import_provider3.UnsupportedFunctionalityError({
443
+ functionality: `unsupported tool content part type: ${contentPart.type}`
444
+ });
445
+ }
441
446
  }
442
447
  });
443
448
  break;