@ai-sdk/amazon-bedrock 4.0.0-beta.81 → 4.0.0-beta.83

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,19 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.0-beta.83
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3ed5519]
8
+ - @ai-sdk/provider-utils@4.0.0-beta.42
9
+ - @ai-sdk/anthropic@3.0.0-beta.73
10
+
11
+ ## 4.0.0-beta.82
12
+
13
+ ### Patch Changes
14
+
15
+ - ef9d7d6: fix(bedrock): send {} as tool input when streaming tool calls without arguments
16
+
3
17
  ## 4.0.0-beta.81
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -966,7 +966,7 @@ var BedrockChatLanguageModel = class {
966
966
  type: "tool-call",
967
967
  toolCallId: (_c = (_b = part.toolUse) == null ? void 0 : _b.toolUseId) != null ? _c : this.config.generateId(),
968
968
  toolName: (_e = (_d = part.toolUse) == null ? void 0 : _d.name) != null ? _e : `tool-${this.config.generateId()}`,
969
- input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g : "")
969
+ input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g : {})
970
970
  });
971
971
  }
972
972
  }
@@ -1156,7 +1156,7 @@ var BedrockChatLanguageModel = class {
1156
1156
  type: "tool-call",
1157
1157
  toolCallId: contentBlock.toolCallId,
1158
1158
  toolName: contentBlock.toolName,
1159
- input: contentBlock.jsonText
1159
+ input: contentBlock.jsonText === "" ? "{}" : contentBlock.jsonText
1160
1160
  });
1161
1161
  }
1162
1162
  }
@@ -1562,7 +1562,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1562
1562
  var import_aws4fetch = require("aws4fetch");
1563
1563
 
1564
1564
  // src/version.ts
1565
- var VERSION = true ? "4.0.0-beta.81" : "0.0.0-test";
1565
+ var VERSION = true ? "4.0.0-beta.83" : "0.0.0-test";
1566
1566
 
1567
1567
  // src/bedrock-sigv4-fetch.ts
1568
1568
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {