@ai-sdk/google 3.0.107 → 3.0.109

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.
@@ -1082,6 +1082,7 @@ The following Zod features are known to not work with Google Generative AI:
1082
1082
 
1083
1083
  | Model | Image Input | Object Generation | Tool Usage | Tool Streaming | Google Search | URL Context |
1084
1084
  | ------------------------------------- | ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
1085
+ | `gemini-3.7-flash` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1085
1086
  | `gemini-3.6-flash` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1086
1087
  | `gemini-3.5-flash` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
1087
1088
  | `gemini-3.5-flash-lite` | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> | <Check size={18} /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "3.0.107",
3
+ "version": "3.0.109",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -33,6 +33,7 @@ export type GoogleGenerativeAIModelId =
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 & {});