@ai-sdk/google 4.0.41 → 4.0.43

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,18 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.43
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e90283: Preserve forced tool calls when strict function tools are configured.
8
+
9
+ ## 4.0.42
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [7fbfc6d]
14
+ - @ai-sdk/provider-utils@5.0.27
15
+
3
16
  ## 4.0.41
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.41" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.43" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -1378,7 +1378,7 @@ function prepareTools({
1378
1378
  tools: [{ functionDeclarations }],
1379
1379
  toolConfig: {
1380
1380
  functionCallingConfig: {
1381
- mode: hasStrictTools ? "VALIDATED" : "ANY"
1381
+ mode: "ANY"
1382
1382
  }
1383
1383
  },
1384
1384
  toolWarnings
@@ -1388,7 +1388,7 @@ function prepareTools({
1388
1388
  tools: [{ functionDeclarations }],
1389
1389
  toolConfig: {
1390
1390
  functionCallingConfig: {
1391
- mode: hasStrictTools ? "VALIDATED" : "ANY",
1391
+ mode: "ANY",
1392
1392
  allowedFunctionNames: [toolChoice.toolName]
1393
1393
  }
1394
1394
  },