@ai-sdk/amazon-bedrock 4.0.103 → 4.0.104

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,11 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.104
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f7f3f5: fix(bedrock): skip passing unsigned reasoning content
8
+
3
9
  ## 4.0.103
4
10
 
5
11
  ### Patch Changes
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
35
35
  var import_aws4fetch = require("aws4fetch");
36
36
 
37
37
  // src/version.ts
38
- var VERSION = true ? "4.0.103" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.104" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch) {
@@ -24,7 +24,7 @@ import {
24
24
  import { AwsV4Signer } from "aws4fetch";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "4.0.103" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.104" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch) {
package/dist/index.js CHANGED
@@ -636,21 +636,6 @@ async function convertToBedrockChatMessages(prompt, isMistral = false) {
636
636
  }
637
637
  }
638
638
  });
639
- } else if (part.providerOptions == null || Object.keys(part.providerOptions).every(
640
- (k2) => k2 === "bedrock" || k2 === "amazonBedrock"
641
- )) {
642
- bedrockContent.push({
643
- reasoningContent: {
644
- reasoningText: {
645
- text: trimIfLast(
646
- isLastBlock,
647
- isLastMessage,
648
- isLastContentPart,
649
- part.text
650
- )
651
- }
652
- }
653
- });
654
639
  }
655
640
  break;
656
641
  }
@@ -1996,7 +1981,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1996
1981
  var import_aws4fetch = require("aws4fetch");
1997
1982
 
1998
1983
  // src/version.ts
1999
- var VERSION = true ? "4.0.103" : "0.0.0-test";
1984
+ var VERSION = true ? "4.0.104" : "0.0.0-test";
2000
1985
 
2001
1986
  // src/bedrock-sigv4-fetch.ts
2002
1987
  function createSigV4FetchFunction(getCredentials, fetch) {