@ai-sdk/google 4.0.97 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +5 -1
- package/dist/internal/index.js.map +1 -1
- package/docs/15-google.mdx +1 -1
- package/package.json +1 -1
- package/src/google-language-model-options.ts +3 -1
package/docs/15-google.mdx
CHANGED
|
@@ -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.
|
|
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
|
@@ -61,7 +61,9 @@ export type GoogleModelId =
|
|
|
61
61
|
export const googleLanguageModelOptions = lazySchema(() =>
|
|
62
62
|
zodSchema(
|
|
63
63
|
z.object({
|
|
64
|
-
responseModalities: z
|
|
64
|
+
responseModalities: z
|
|
65
|
+
.array(z.enum(['TEXT', 'IMAGE', 'AUDIO']))
|
|
66
|
+
.optional(),
|
|
65
67
|
|
|
66
68
|
thinkingConfig: z
|
|
67
69
|
.object({
|