File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ assert isinstance(result.output, BinaryImage)
292292_ (This example is complete, it can be run "as is")_
293293
294294OpenAI Responses models also respect the ` aspect_ratio ` parameter. Because the OpenAI API only exposes discrete image sizes,
295- PydanticAI maps ` '1:1' ` -> ` 1024x1024 ` , ` '2:3' ` -> ` 1024x1536 ` , and ` '3:2' ` -> ` 1536x1024 ` . Providing any other aspect ratio
295+ Pydantic AI maps ` '1:1' ` -> ` 1024x1024 ` , ` '2:3' ` -> ` 1024x1536 ` , and ` '3:2' ` -> ` 1536x1024 ` . Providing any other aspect ratio
296296results in an error, and if you also set ` size ` it must match the computed value.
297297
298298To control the aspect ratio when using Gemini image models, include the ` ImageGenerationTool ` explicitly:
You can’t perform that action at this time.
0 commit comments