[AI] Add config for image aspect ratio / size with Nano Banana#15920
[AI] Add config for image aspect ratio / size with Nano Banana#15920andrewheard wants to merge 6 commits intomainfrom
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
Generated by 🚫 Danger |
| let storageURI: String? | ||
| let negativePrompt: String? | ||
| let aspectRatio: String? | ||
| let sampleImageSize: String? |
There was a problem hiding this comment.
Why sampleImageSize and not imageSize to align with the gemini docs?
There was a problem hiding this comment.
This is an internal type just used for serializing JSON to send to the :predict endpoint (solely for Imagen). The size parameter for Imagen is sampleImageSize. I see what you mean by the Gemini docs but I believe they are wrong based on the schema. We should verify though.
|
Continued in #15923 |
|
Closing; continued in #15923. |
Add support for configuring image aspect ratios and sizes when generating images using Nano Banana. Also adds support for 2K images with Imagen (previously only the default 1K was possible).
TODOs:
#no-changelog