@ai-sdk/google 3.0.106 → 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,19 @@
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
+
9
+ ## 3.0.107
10
+
11
+ ### Patch Changes
12
+
13
+ - c29b64f: Preserve Google API error details in `APICallError.data`.
14
+ - Updated dependencies [b2a4d5a]
15
+ - @ai-sdk/provider-utils@4.0.45
16
+
3
17
  ## 3.0.106
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -7,6 +7,7 @@ declare const googleErrorDataSchema: _ai_sdk_provider_utils.LazySchema<{
7
7
  code: number | null;
8
8
  message: string;
9
9
  status: string;
10
+ details?: unknown[] | null | undefined;
10
11
  };
11
12
  }>;
12
13
  type GoogleErrorData = InferSchema<typeof googleErrorDataSchema>;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ declare const googleErrorDataSchema: _ai_sdk_provider_utils.LazySchema<{
7
7
  code: number | null;
8
8
  message: string;
9
9
  status: string;
10
+ details?: unknown[] | null | undefined;
10
11
  };
11
12
  }>;
12
13
  type GoogleErrorData = InferSchema<typeof googleErrorDataSchema>;
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.106" : "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");
@@ -46,7 +46,8 @@ var googleErrorDataSchema = (0, import_provider_utils.lazySchema)(
46
46
  error: import_v4.z.object({
47
47
  code: import_v4.z.number().nullable(),
48
48
  message: import_v4.z.string(),
49
- status: import_v4.z.string()
49
+ status: import_v4.z.string(),
50
+ details: import_v4.z.array(import_v4.z.unknown()).nullish()
50
51
  })
51
52
  })
52
53
  )
@@ -1208,7 +1209,7 @@ function prepareTools({
1208
1209
  tools: [{ functionDeclarations }],
1209
1210
  toolConfig: {
1210
1211
  functionCallingConfig: {
1211
- mode: hasStrictTools ? "VALIDATED" : "ANY"
1212
+ mode: "ANY"
1212
1213
  }
1213
1214
  },
1214
1215
  toolWarnings
@@ -1218,7 +1219,7 @@ function prepareTools({
1218
1219
  tools: [{ functionDeclarations }],
1219
1220
  toolConfig: {
1220
1221
  functionCallingConfig: {
1221
- mode: hasStrictTools ? "VALIDATED" : "ANY",
1222
+ mode: "ANY",
1222
1223
  allowedFunctionNames: [toolChoice.toolName]
1223
1224
  }
1224
1225
  },