feat: add support for gemini-3-pro-preview model#2202
feat: add support for gemini-3-pro-preview model#2202naorpeled merged 3 commits intoThe-PR-Agent:mainfrom
Conversation
- Add gemini/gemini-3-pro-preview with 1,048,576 max tokens - Add vertex_ai/gemini-3-pro-preview with 1,048,576 max tokens - Add test coverage for both model variants - Update documentation with usage examples for both variants This enables users to utilize Google's Gemini 3 Pro Preview model through both Google AI Studio and Vertex AI providers with full 1M+ token context window support.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
- Consolidate test cases for gemini-3-pro-preview into a parameterized test - Remove redundant assertions and simplify the test structure - Ensure both Google AI Studio and Vertex AI variants are covered in a single test This enhances maintainability and readability of the test suite for the gemini-3-pro-preview model.
| - `vertex_ai/gemini-3-pro-preview` | ||
| - `gemini/gemini-3-pro-preview` | ||
| - `gpt-5-2025-08-07` | ||
| - `gpt-5.2-2025-12-11` |
|
|
||
| ```toml | ||
| [config] | ||
| model="gemini/gemini-3-pro-preview" |
There was a problem hiding this comment.
Эта строка — не “код” приложения, а пример настройки в документации (формат TOML).
model="gemini/gemini-3-pro-preview" показывает, как в конфиге Qodo Merge зафиксировать используемую модель на gemini-3-pro-preview у провайдера gemini (в отличие от варианта выше в доке с vertex_ai/gemini-3-pro-preview).
То есть смысл: при запуске/работе Qodo Merge будет выбирать именно эту модель, а не какую-то другую по умолчанию.
User description
This enables users to utilize Google's Gemini 3 Pro Preview model through both Google AI Studio and Vertex AI providers with full 1M+ token context window support.
Resources:
PR Type
Enhancement
Description
Add gemini-3-pro-preview model support for both Google AI and Vertex AI
Configure 1,048,576 max tokens for both model variants
Add parameterized test coverage for both provider implementations
Update documentation with usage examples for Google AI variant
Diagram Walkthrough
File Walkthrough
__init__.py
Register gemini-3-pro-preview models with max tokenspr_agent/algo/init.py
vertex_ai/gemini-3-pro-previewwith 1,048,576 max tokensgemini/gemini-3-pro-previewwith 1,048,576 max tokensregistry
test_get_max_tokens.py
Add parameterized test for gemini-3-pro-preview variantstests/unittest/test_get_max_tokens.py
providers
qodo_merge_models.md
Document gemini-3-pro-preview Google AI variant usagedocs/docs/usage-guide/qodo_merge_models.md
gemini/gemini-3-pro-previewto supported models list