-
-
Notifications
You must be signed in to change notification settings - Fork 978
add support for latest Gemini preview model ids #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,72 @@ | |
| } | ||
| }, | ||
| "models": [ | ||
| { | ||
| "model_name": "gemini-3.1-pro-preview", | ||
| "friendly_name": "Gemini 3.1 Pro Preview", | ||
| "aliases": [ | ||
| "gemini-3.1-pro", | ||
| "gemini31pro", | ||
| "pro-3.1" | ||
| ], | ||
| "intelligence_score": 19, | ||
| "description": "Latest Gemini 3.1 preview with advanced reasoning, coding, and multimodal capabilities", | ||
| "context_window": 1048576, | ||
| "max_output_tokens": 65536, | ||
| "max_thinking_tokens": 32768, | ||
| "supports_extended_thinking": true, | ||
| "supports_system_prompts": true, | ||
| "supports_streaming": true, | ||
| "supports_function_calling": true, | ||
| "supports_json_mode": true, | ||
| "supports_images": true, | ||
| "supports_temperature": true, | ||
| "allow_code_generation": true, | ||
| "max_image_size_mb": 32.0 | ||
| }, | ||
| { | ||
| "model_name": "gemini-3-flash-preview", | ||
| "friendly_name": "Gemini 3 Flash Preview", | ||
| "aliases": [ | ||
| "gemini-3-flash", | ||
| "flash-3", | ||
| "flash3" | ||
| ], | ||
| "intelligence_score": 11, | ||
| "description": "Latest Gemini 3 Flash preview with frontier-class performance at Flash latency and pricing", | ||
| "context_window": 1048576, | ||
| "max_output_tokens": 65536, | ||
| "max_thinking_tokens": 24576, | ||
| "supports_extended_thinking": true, | ||
| "supports_system_prompts": true, | ||
| "supports_streaming": true, | ||
| "supports_function_calling": true, | ||
| "supports_json_mode": true, | ||
| "supports_images": true, | ||
| "supports_temperature": true, | ||
| "max_image_size_mb": 20.0 | ||
| }, | ||
| { | ||
| "model_name": "gemini-3.1-flash-lite-preview", | ||
| "friendly_name": "Gemini 3.1 Flash-Lite Preview", | ||
| "aliases": [ | ||
| "gemini-3.1-flash-lite", | ||
| "flash-lite-3.1", | ||
| "flashlite3.1" | ||
| ], | ||
| "intelligence_score": 8, | ||
| "description": "Latest Gemini 3.1 Flash-Lite preview for low-cost, high-volume multimodal workloads", | ||
| "context_window": 1048576, | ||
| "max_output_tokens": 65536, | ||
| "supports_extended_thinking": true, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This new model is marked with Useful? React with 👍 / 👎. |
||
| "supports_system_prompts": true, | ||
| "supports_streaming": true, | ||
| "supports_function_calling": true, | ||
| "supports_json_mode": true, | ||
| "supports_images": true, | ||
| "supports_temperature": true, | ||
| "max_image_size_mb": 20.0 | ||
| }, | ||
| { | ||
| "model_name": "gemini-3-pro-preview", | ||
| "friendly_name": "Gemini Pro 3.0 Preview", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The model
gemini-3.1-flash-lite-previewhassupports_extended_thinkingset totrue, but it is missing themax_thinking_tokensfield. Inproviders/gemini.py, the thinking budget calculation (lines 196-202) requiresmax_thinking_tokens > 0. Without this field, the model will claim to support extended thinking but will never actually use it because the budget calculation will be skipped. Given that other 'Lite' models (likegemini-2.0-flash-liteon line 170) do not support this feature, please verify if this should befalseor if amax_thinking_tokensvalue needs to be added.