@ai-sdk/google 4.0.96 → 4.0.98

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.
@@ -223,7 +223,7 @@ The following optional provider options are available for Google models:
223
223
  - `OFF`
224
224
 
225
225
  - **responseModalities** _string[]_
226
- The modalities to use for the response. The following modalities are supported: `TEXT`, `IMAGE`. When not defined or empty, the model defaults to returning only text.
226
+ The modalities to use for the response. Valid values are `TEXT`, `IMAGE`, and `AUDIO`, but support is model-dependent. When not defined or empty, the model defaults to returning only text.
227
227
 
228
228
  - **thinkingConfig** _\{ thinkingLevel?: 'minimal' | 'low' | 'medium' | 'high'; thinkingBudget?: number; includeThoughts?: boolean \}_
229
229
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "4.0.96",
3
+ "version": "4.0.98",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -35,8 +35,8 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@ai-sdk/provider": "4.0.27",
39
- "@ai-sdk/provider-utils": "5.0.60"
38
+ "@ai-sdk/provider": "4.0.28",
39
+ "@ai-sdk/provider-utils": "5.0.61"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ai-sdk/test-server": "2.0.4",
@@ -61,7 +61,9 @@ export type GoogleModelId =
61
61
  export const googleLanguageModelOptions = lazySchema(() =>
62
62
  zodSchema(
63
63
  z.object({
64
- responseModalities: z.array(z.enum(['TEXT', 'IMAGE'])).optional(),
64
+ responseModalities: z
65
+ .array(z.enum(['TEXT', 'IMAGE', 'AUDIO']))
66
+ .optional(),
65
67
 
66
68
  thinkingConfig: z
67
69
  .object({