Revert "Disable Routing by default (#11549)" (#11594)

This commit is contained in:
Abhi
2025-10-21 14:36:28 -04:00
committed by GitHub
parent 2c93542e5c
commit a74a04d12d
4 changed files with 6 additions and 6 deletions

View File

@@ -1327,7 +1327,7 @@ describe('loadCliConfig model selection', () => {
argv,
);
expect(config.getModel()).toBe(DEFAULT_GEMINI_MODEL);
expect(config.getModel()).toBe('auto');
});
it('always prefers model from argv', async () => {
@@ -1640,12 +1640,12 @@ describe('loadCliConfig useRipgrep', () => {
});
describe('loadCliConfig useModelRouter', () => {
it('should be false by default when useModelRouter is not set in settings', async () => {
it('should be true by default when useModelRouter is not set in settings', async () => {
process.argv = ['node', 'script.js'];
const argv = await parseArguments({} as Settings);
const settings: Settings = {};
const config = await loadCliConfig(settings, [], 'test-session', argv);
expect(config.getUseModelRouter()).toBe(false);
expect(config.getUseModelRouter()).toBe(true);
});
it('should be true when useModelRouter is set to true in settings', async () => {