Repository navigation
π§ͺ Feedback Wanted: Experimental Intelligent Model Routing #8649
Replies: 6 comments 3 replies
|
Wondering, does the router use the new gemini-2.5-flash-preview-09-2025 or the older Flash? How does one leverage this (https://developers.googleblog.com/en/continuing-to-bring-you-our-latest-models-with-an-improved-gemini-2-5-flash-and-flash-lite-release/) in combination with 2.5 Pro? |
|
It seems that in the last few days the |
Is there any way to get an announcement when model is switched? |
|
Models are not available when authenticating with different mechanisms. It seems that for using gemini-2.5-flash-lite I should be authenticating with API keys, is there a way to use gemini-2.5-flash instead of gemini-2.5-flash-lite, its throwing me errors constantly.. I tried this "modelConfigs": {
"overrides": [
{
"match": {
"model": "gemini-2.5-flash-lite"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
},
{
"match": {
"model": "classifier"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
},
{
"match": {
"model": "prompt-completion"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
},
{
"match": {
"model": "edit-corrector"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
},
{
"match": {
"model": "summarizer-default"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
},
{
"match": {
"model": "summarizer-shell"
},
"modelConfig": {
"model": "gemini-2.5-flash"
}
}
]
},
"experimental": {
"useModelRouter": true
}but the documentation for settings.json is vauge and idk how to configure it correctly.. |
|
Subjectively, it seems to me that routing is not "protecting" use of 2.5-pro as well as it did in the first days of auto routing. For instance, in my session so far, I have I guess this is the relevant source: packages/core/src/routing/strategies/classifierStrategy.ts |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Important
[UPDATE] We have now rolled out model routing with more details here.
Hey everyone!
We're excited to roll out a new experimental feature in our
previewbuild: Intelligent Model Routing.Why? π€
Currently, Gemini CLI uses one primary model (like Gemini 2.5 Pro) for your entire session. This is fantastic for complex tasks, but it's often overkill or even less effective for simpler requests. Using a heavy-duty model for small tasks can increase latency and burn through your Pro quota faster than necessary.
This new feature intelligently routes your requests to the model best suited for the job. Simple queries will be sent to a faster, lighter model - Flash - while complex analytical or creative tasks will still use the power of Pro.
Our goals for this are to:
How to try it π±
This feature is now available in our
previewrelease.1. Install the
previewversion:2. Enable the feature flag: Add the following to your
settings.jsonfile (usually located at~/.gemini/settings.json):{ "experimental": { "useModelRouter": true } }How to know it's working βοΈ
After you've enabled the feature and started a new session, you can verify that routing is active by running the
/statscommand.You'll likely notice two changes in your stats:
gemini-2.5-flash) for your simpler queries.flash-litemodel requests.Bypassing the router: If you ever need to force a specific model for a particular query, you can still use the standard model flag, which will bypass the router:
We need your feedback π
This is an experimental version of the router, and we'd love your help testing it. Please reply to this thread with any feedback, especially regarding:
How to revertβοΈ
If you run into any issues or just want to return to the stable build, you can switch back at any time:
(You can also remove the
experimentalblock from yoursettings.json.)Thanks for helping us make Gemini CLI better! β€οΈ
All reactions