Replace models for image generation with updated ones. - #14545
Conversation
There was a problem hiding this comment.
Code Review
This pull request attempts to update the model used for image editing and inpainting tasks from 'imagen-3.0-capability-001' to 'gemini-3.1-flash-image'. However, the reviewer points out that 'gemini-3.1-flash-image' is not a valid model for image editing in the Google GenAI SDK, and using it will result in API errors. It is recommended to revert these changes back to 'imagen-3.0-capability-001'.
|
|
||
| image = client.models.edit_image( | ||
| model="imagen-3.0-capability-001", | ||
| model="gemini-3.1-flash-image", |
There was a problem hiding this comment.
The model gemini-3.1-flash-image is not a valid model for image editing in the Google GenAI SDK. Image editing operations (such as controlled editing and inpainting) are supported by the Imagen capability models, specifically imagen-3.0-capability-001. Using an invalid model name will result in an API error.
| model="gemini-3.1-flash-image", | |
| model="imagen-3.0-capability-001", |
|
|
||
| image = client.models.edit_image( | ||
| model="imagen-3.0-capability-001", | ||
| model="gemini-3.1-flash-image", |
There was a problem hiding this comment.
The model gemini-3.1-flash-image is not a valid model for image editing in the Google GenAI SDK. Image editing operations (such as controlled editing and inpainting) are supported by the Imagen capability models, specifically imagen-3.0-capability-001. Using an invalid model name will result in an API error.
| model="gemini-3.1-flash-image", | |
| model="imagen-3.0-capability-001", |
|
|
||
| image = client.models.edit_image( | ||
| model="imagen-3.0-capability-001", | ||
| model="gemini-3.1-flash-image", |
There was a problem hiding this comment.
The model gemini-3.1-flash-image is not a valid model for image editing in the Google GenAI SDK. Image editing operations (such as controlled editing and inpainting) are supported by the Imagen capability models, specifically imagen-3.0-capability-001. Using an invalid model name will result in an API error.
| model="gemini-3.1-flash-image", | |
| model="imagen-3.0-capability-001", |
Description
PLACEHOLDER
Fixes #
Checklist
Testing
Compliance & Style
Post-Approval Actions