Skip to content

Commit 000d2c6

Browse files
authored
Merge branch 'main' into fix-makefile
2 parents 015c4f2 + 6635272 commit 000d2c6

14 files changed

+235
-130
lines changed

docs/builtin-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ The [`ImageGenerationTool`][pydantic_ai.builtin_tools.ImageGenerationTool] enabl
199199
| Provider | Supported | Notes |
200200
|----------|-----------|-------|
201201
| OpenAI Responses || Full feature support. Only supported by models newer than `gpt-4o`. Metadata about the generated image, like the [`revised_prompt`](https://platform.openai.com/docs/guides/tools-image-generation#revised-prompt) sent to the underlying image model, is available on the [`BuiltinToolReturnPart`][pydantic_ai.messages.BuiltinToolReturnPart] that's available via [`ModelResponse.builtin_tool_calls`][pydantic_ai.messages.ModelResponse.builtin_tool_calls]. |
202-
| Google || No parameter support. Only supported by [image generation models](https://ai.google.dev/gemini-api/docs/image-generation) like `gemini-2.5-flash-image-preview`. These models do not support [structured output](output.md) or [function tools](tools.md). These models will always generate images, even if this built-in tool is not explicitly specified. |
202+
| Google || No parameter support. Only supported by [image generation models](https://ai.google.dev/gemini-api/docs/image-generation) like `gemini-2.5-flash-image`. These models do not support [structured output](output.md) or [function tools](tools.md). These models will always generate images, even if this built-in tool is not explicitly specified. |
203203
| Anthropic || |
204204
| Groq || |
205205
| Bedrock || |
@@ -232,7 +232,7 @@ Image generation with Google [image generation models](https://ai.google.dev/gem
232232
```py {title="image_generation_google.py"}
233233
from pydantic_ai import Agent, BinaryImage
234234

235-
agent = Agent('google-gla:gemini-2.5-flash-image-preview')
235+
agent = Agent('google-gla:gemini-2.5-flash-image')
236236

237237
result = agent.run_sync('Tell me a two-sentence story about an axolotl with an illustration.')
238238
print(result.output)

0 commit comments

Comments
 (0)