You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/providers/01-ai-sdk-providers/15-google-generative-ai.mdx
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ const model = google('gemini-1.5-pro-latest');
80
80
e.g. `tunedModels/my-model`.
81
81
</Note>
82
82
83
-
Google Generative AI models support also some model specific settings that are not part of the [standard call settings](/docs/ai-sdk-core/settings).
83
+
Google Generative AI also supports some model specific settings that are not part of the [standard call settings](/docs/ai-sdk-core/settings).
84
84
You can pass them as an options argument:
85
85
86
86
```ts
@@ -132,6 +132,29 @@ The following optional settings are available for Google Generative AI models:
132
132
-`BLOCK_ONLY_HIGH`
133
133
-`BLOCK_NONE`
134
134
135
+
Further configuration can be done using Google Generative AI provider options. You can validate the provider options using the `GoogleGenerativeAIProviderOptions` type.
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.
157
+
135
158
You can use Google Generative AI language models to generate text with the `generateText` function:
Further configuration can be done using Google Vertex provider options. You can validate the provider options using the `GoogleVertexImageProviderOptions` type.
0 commit comments