fix(patch): cherry-pick 8aace3a to release/v0.10.0-preview.2-pr-11549 [CONFLICTS] (#11595)

Co-authored-by: Abhi <43648792+abhipatel12@users.noreply.github.com>
This commit is contained in:
gemini-cli-robot
2025-10-21 11:08:53 -07:00
committed by GitHub
parent 076123e315
commit f35e241770
5 changed files with 43 additions and 97 deletions
+2 -2
View File
@@ -2070,7 +2070,7 @@ describe('loadCliConfig model selection', () => {
argv,
);
expect(config.getModel()).toBe('auto');
expect(config.getModel()).toBe(DEFAULT_GEMINI_MODEL);
});
it('always prefers model from argvs', async () => {
@@ -2506,7 +2506,7 @@ describe('loadCliConfig useRipgrep', () => {
'test-session',
argv,
);
expect(config.getUseModelRouter()).toBe(true);
expect(config.getUseModelRouter()).toBe(false);
});
it('should be true when useModelRouter is set to true in settings', async () => {
+1 -1
View File
@@ -670,7 +670,7 @@ export async function loadCliConfig(
);
}
const useModelRouter = settings.experimental?.useModelRouter ?? true;
const useModelRouter = settings.experimental?.useModelRouter ?? false;
const defaultModel = useModelRouter
? DEFAULT_GEMINI_MODEL_AUTO
: DEFAULT_GEMINI_MODEL;
@@ -328,7 +328,7 @@ describe('SettingsSchema', () => {
).toBe('Experimental');
expect(
getSettingsSchema().experimental.properties.useModelRouter.default,
).toBe(true);
).toBe(false);
});
});
});
+1 -1
View File
@@ -1071,7 +1071,7 @@ const SETTINGS_SCHEMA = {
label: 'Use Model Router',
category: 'Experimental',
requiresRestart: true,
default: true,
default: false,
description:
'Enable model routing to route requests to the best model based on complexity.',
showInDialog: true,