@ai-sdk/amazon-bedrock 4.0.52 → 4.0.53

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.53
4
+
5
+ ### Patch Changes
6
+
7
+ - aebbebd: Remove misleading warning when mixing Anthropic provider-defined tools and standard function tools on Bedrock. The warning incorrectly stated that only Anthropic tools would be used, but both tool types are sent to Bedrock and work correctly together.
8
+
3
9
  ## 4.0.52
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.52" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.53" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.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.52" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.53" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.js CHANGED
@@ -239,13 +239,6 @@ async function prepareTools({
239
239
  const bedrockTools = [];
240
240
  const usingAnthropicTools = isAnthropicModel && ProviderTools.length > 0;
241
241
  if (usingAnthropicTools) {
242
- if (functionTools.length > 0) {
243
- toolWarnings.push({
244
- type: "unsupported",
245
- feature: "mixing Anthropic provider-defined tools and standard function tools",
246
- details: "Mixed Anthropic provider-defined tools and standard function tools are not supported in a single call to Bedrock. Only Anthropic tools will be used."
247
- });
248
- }
249
242
  const {
250
243
  toolChoice: preparedAnthropicToolChoice,
251
244
  toolWarnings: anthropicToolWarnings,
@@ -1901,7 +1894,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1901
1894
  var import_aws4fetch = require("aws4fetch");
1902
1895
 
1903
1896
  // src/version.ts
1904
- var VERSION = true ? "4.0.52" : "0.0.0-test";
1897
+ var VERSION = true ? "4.0.53" : "0.0.0-test";
1905
1898
 
1906
1899
  // src/bedrock-sigv4-fetch.ts
1907
1900
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {