@ai-sdk/google 4.0.42 → 4.0.44

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.
@@ -1041,6 +1041,7 @@ The following Zod features are known to not work with Google:
1041
1041
 
1042
1042
  | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Google Search | URL Context |
1043
1043
  | ------------------------------------- | ----------- | ----------------- | ---------- | -------------- | ------------- | ----------- |
1044
+ | `gemini-3.7-flash` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1044
1045
  | `gemini-3.6-flash` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1045
1046
  | `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
1046
1047
  | `gemini-3.5-flash-lite` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "4.0.42",
3
+ "version": "4.0.44",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -33,6 +33,7 @@ export type GoogleModelId =
33
33
  | 'gemini-3.5-flash'
34
34
  | 'gemini-3.5-flash-lite'
35
35
  | 'gemini-3.6-flash'
36
+ | 'gemini-3.7-flash'
36
37
  // latest version
37
38
  // https://ai.google.dev/gemini-api/docs/models#latest
38
39
  | 'gemini-pro-latest'
@@ -290,7 +290,7 @@ export function prepareTools({
290
290
  tools: [{ functionDeclarations }],
291
291
  toolConfig: {
292
292
  functionCallingConfig: {
293
- mode: hasStrictTools ? 'VALIDATED' : 'ANY',
293
+ mode: 'ANY',
294
294
  },
295
295
  },
296
296
  toolWarnings,
@@ -300,7 +300,7 @@ export function prepareTools({
300
300
  tools: [{ functionDeclarations }],
301
301
  toolConfig: {
302
302
  functionCallingConfig: {
303
- mode: hasStrictTools ? 'VALIDATED' : 'ANY',
303
+ mode: 'ANY',
304
304
  allowedFunctionNames: [toolChoice.toolName],
305
305
  },
306
306
  },
@@ -35,6 +35,7 @@ export type GoogleInteractionsModelId =
35
35
  | 'gemini-3.5-flash'
36
36
  | 'gemini-3.5-flash-lite'
37
37
  | 'gemini-3.6-flash'
38
+ | 'gemini-3.7-flash'
38
39
  | 'lyria-3-clip-preview'
39
40
  | 'lyria-3-pro-preview'
40
41
  | (string & {});