@ai-sdk/google 3.0.107 → 3.0.108

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/google
2
2
 
3
+ ## 3.0.108
4
+
5
+ ### Patch Changes
6
+
7
+ - dd7ecd7: Preserve forced tool calls when strict function tools are configured.
8
+
3
9
  ## 3.0.107
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(index_exports);
30
30
  var import_provider_utils23 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.107" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.108" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -1209,7 +1209,7 @@ function prepareTools({
1209
1209
  tools: [{ functionDeclarations }],
1210
1210
  toolConfig: {
1211
1211
  functionCallingConfig: {
1212
- mode: hasStrictTools ? "VALIDATED" : "ANY"
1212
+ mode: "ANY"
1213
1213
  }
1214
1214
  },
1215
1215
  toolWarnings
@@ -1219,7 +1219,7 @@ function prepareTools({
1219
1219
  tools: [{ functionDeclarations }],
1220
1220
  toolConfig: {
1221
1221
  functionCallingConfig: {
1222
- mode: hasStrictTools ? "VALIDATED" : "ANY",
1222
+ mode: "ANY",
1223
1223
  allowedFunctionNames: [toolChoice.toolName]
1224
1224
  }
1225
1225
  },