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: src/oss/python/integrations/chat/google_generative_ai.mdx
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,17 @@ ai_msg
114
114
```
115
115
</CodeGroup>
116
116
117
+
<Note>
118
+
**Message content shape**
119
+
120
+
Gemini 3 series models will always return a list of content blocks to capture [thought signatures](#thought-signatures). Use the `.text` property to recover string content.
Gemini 3 series models will always return a list of content blocks to capture [thought signatures](#thought-signatures). Use the `.text` property to recover string content.
Gemini models can accept multimodal inputs (text, images, audio, video) and, for some models, generate multimodal outputs.
@@ -418,6 +418,14 @@ Certain models (such as `gemini-2.5-flash-preview-tts`) can generate audio files
418
418
419
419
See more information on the [Gemini API docs](https://ai.google.dev/gemini-api/docs/speech-generation) for details.
420
420
421
+
<Warning>
422
+
**Vertex AI Limitation**
423
+
424
+
Audio generation models are currently in limited preview on Vertex AI and may require allowlist access. If you encounter an `INVALID_ARGUMENT` error when using TTS models with `vertexai=True`, your GCP project may need to be allowlisted.
425
+
426
+
For more details, see this [Google AI forum discussion](https://discuss.ai.google.dev/t/request-allowlist-access-for-audio-output-in-gemini-2-5-pro-flash-tts-vertex-ai/108067).
427
+
</Warning>
428
+
421
429
```python
422
430
from langchain_google_genai import ChatGoogleGenerativeAI, Modality
0 commit comments