feat: add gemini-3-pro-image and gemini-3.1-flash-image GA models - #6371
Merged
Calcium-Ion merged 1 commit intoJul 25, 2026
Merged
Conversation
Contributor
WalkthroughThe Gemini model registry and default imagine-model settings now include ChangesGemini image model availability
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
agogo233
pushed a commit
to agogo233/new-api
that referenced
this pull request
Jul 27, 2026
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
lizhongyi1209
pushed a commit
to lizhongyi1209/new-api
that referenced
this pull request
Jul 28, 2026
IQZZ020501
pushed a commit
to IQZZ020501/new-api
that referenced
this pull request
Jul 30, 2026
11 tasks
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
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.
Google 已于 2026-07-17 停用
gemini-3-pro-image-preview与gemini-3.1-flash-image-preview端点,GA 替代名为gemini-3-pro-image与gemini-3.1-flash-image(参见 官方迁移说明)。本 PR 注册这两个 GA 模型名:
relay/channel/gemini/constant.go:加入渠道默认ModelList(Vertex 渠道复用该列表,一并生效)。setting/model_setting/gemini.go:加入SupportedImagineModels默认值,使 GA 名走图像生成分支(responseModalities: ["TEXT","IMAGE"])。无需其他改动:补全倍率的
gemini-3-pro-image前缀规则天然覆盖 GA 名;preview 名暂保留以兼容存量渠道配置。🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。Summary by CodeRabbit