feat(provider/google): add support for new Google image model aspect ratios and sizes#12897
Merged
felixarntz merged 3 commits intomainfrom Feb 26, 2026
Merged
Conversation
dancer
approved these changes
Feb 26, 2026
Contributor
|
|
Contributor
felixarntz
added a commit
that referenced
this pull request
Feb 26, 2026
…el aspect ratios and sizes (#12898) This is an automated backport of #12897 to the release-v5.0 branch. FYI @felixarntz ~~This backport has conflicts that need to be resolved manually.~~ Conflicts resolved. ### `git cherry-pick` output ``` CONFLICT (modify/delete): examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts deleted in HEAD and modified in 1ece97a (feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897)). Version 1ece97a (feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897)) of examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts left in tree. Auto-merging packages/google/src/google-generative-ai-options.ts error: could not apply 1ece97a... feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897) hint: After resolving the conflicts, mark them with hint: "git add/rm <pathspec>", then run hint: "git cherry-pick --continue". hint: You can instead skip this commit with "git cherry-pick --skip". hint: To abort and get back to the state before "git cherry-pick", hint: run "git cherry-pick --abort". hint: Disable this message with "git config set advice.mergeConflict false" ``` --------- Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
With the launch of Gemini 3.1 Image, a few new image aspect ratios and one new size were introduced.
Reference from the source: googleapis/python-genai@8b2a4e0
Summary
Adds the new image aspect ratios.
Manual Verification
Run the updated example.
Checklist
pnpm changesetin the project root)Future Work
N/A
Related Issues
N/A