mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 16:41:11 -07:00
Disable Routing by default (#11549)
This commit is contained in:
@@ -1327,7 +1327,7 @@ describe('loadCliConfig model selection', () => {
|
|||||||
argv,
|
argv,
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(config.getModel()).toBe('auto');
|
expect(config.getModel()).toBe(DEFAULT_GEMINI_MODEL);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('always prefers model from argv', async () => {
|
it('always prefers model from argv', async () => {
|
||||||
@@ -1640,12 +1640,12 @@ describe('loadCliConfig useRipgrep', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('loadCliConfig useModelRouter', () => {
|
describe('loadCliConfig useModelRouter', () => {
|
||||||
it('should be true by default when useModelRouter is not set in settings', async () => {
|
it('should be false by default when useModelRouter is not set in settings', async () => {
|
||||||
process.argv = ['node', 'script.js'];
|
process.argv = ['node', 'script.js'];
|
||||||
const argv = await parseArguments({} as Settings);
|
const argv = await parseArguments({} as Settings);
|
||||||
const settings: Settings = {};
|
const settings: Settings = {};
|
||||||
const config = await loadCliConfig(settings, [], 'test-session', argv);
|
const config = await loadCliConfig(settings, [], '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 () => {
|
it('should be true when useModelRouter is set to true in settings', async () => {
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ export async function loadCliConfig(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useModelRouter = settings.experimental?.useModelRouter ?? true;
|
const useModelRouter = settings.experimental?.useModelRouter ?? false;
|
||||||
const defaultModel = useModelRouter
|
const defaultModel = useModelRouter
|
||||||
? DEFAULT_GEMINI_MODEL_AUTO
|
? DEFAULT_GEMINI_MODEL_AUTO
|
||||||
: DEFAULT_GEMINI_MODEL;
|
: DEFAULT_GEMINI_MODEL;
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ describe('SettingsSchema', () => {
|
|||||||
).toBe('Experimental');
|
).toBe('Experimental');
|
||||||
expect(
|
expect(
|
||||||
getSettingsSchema().experimental.properties.useModelRouter.default,
|
getSettingsSchema().experimental.properties.useModelRouter.default,
|
||||||
).toBe(true);
|
).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1071,7 +1071,7 @@ const SETTINGS_SCHEMA = {
|
|||||||
label: 'Use Model Router',
|
label: 'Use Model Router',
|
||||||
category: 'Experimental',
|
category: 'Experimental',
|
||||||
requiresRestart: true,
|
requiresRestart: true,
|
||||||
default: true,
|
default: false,
|
||||||
description:
|
description:
|
||||||
'Enable model routing to route requests to the best model based on complexity.',
|
'Enable model routing to route requests to the best model based on complexity.',
|
||||||
showInDialog: true,
|
showInDialog: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user