Skip to content

Commit f8315f5

Browse files
authored
oss(py): rename llm google page (#1756)
1 parent 49385fa commit f8315f5

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

src/docs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,10 @@
18451845
{
18461846
"source": "/langsmith/agent-server-api-ref",
18471847
"destination": "/langsmith/server-api-ref"
1848+
},
1849+
{
1850+
"source": "/oss/python/integrations/llms/google_ai",
1851+
"destination": "/oss/python/integrations/llms/google_generative_ai"
18481852
}
18491853
]
18501854
}

src/oss/python/integrations/chat/google_generative_ai.mdx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,17 @@ ai_msg
114114
```
115115
</CodeGroup>
116116

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.
121+
122+
```python
123+
response.content # -> [{"type": "text", "text": "Hello!", "extras": {"signature": "EpQFCp...lKx64r"}}]
124+
response.text # -> "Hello!"
125+
```
126+
</Note>
127+
117128
```python
118129
print(ai_msg.content)
119130
```
@@ -130,17 +141,6 @@ print(ai_msg.content)
130141
```
131142
</CodeGroup>
132143

133-
<Note>
134-
**Message content shape**
135-
136-
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.
137-
138-
```python
139-
response.content # -> [{"type": "text", "text": "Hello!", "extras": {"signature": "EpQFCp...lKx64r"}}]
140-
response.text # -> "Hello!"
141-
```
142-
</Note>
143-
144144
## Multimodal usage
145145

146146
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
418418

419419
See more information on the [Gemini API docs](https://ai.google.dev/gemini-api/docs/speech-generation) for details.
420420

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+
421429
```python
422430
from langchain_google_genai import ChatGoogleGenerativeAI, Modality
423431

src/oss/python/integrations/llms/google_ai.mdx renamed to src/oss/python/integrations/llms/google_generative_ai.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Google AI
2+
title: GoogleGenerativeAI
3+
description: Get started using legacy Gemini LLMs in LangChain.
34
---
45

56
<Warning>

0 commit comments

Comments
 (0)