mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
Enable model routing for all users (#12300)
This commit is contained in:
@@ -563,7 +563,7 @@ describe('Server Config (config.ts)', () => {
|
|||||||
useModelRouter: true,
|
useModelRouter: true,
|
||||||
});
|
});
|
||||||
await config.refreshAuth(AuthType.LOGIN_WITH_GOOGLE);
|
await config.refreshAuth(AuthType.LOGIN_WITH_GOOGLE);
|
||||||
expect(config.getUseModelRouter()).toBe(false);
|
expect(config.getUseModelRouter()).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should enable model router by default for other auth types', async () => {
|
it('should enable model router by default for other auth types', async () => {
|
||||||
|
|||||||
@@ -485,9 +485,7 @@ export class Config {
|
|||||||
this.useWriteTodos = params.useWriteTodos ?? false;
|
this.useWriteTodos = params.useWriteTodos ?? false;
|
||||||
this.initialUseModelRouter = params.useModelRouter ?? false;
|
this.initialUseModelRouter = params.useModelRouter ?? false;
|
||||||
this.useModelRouter = this.initialUseModelRouter;
|
this.useModelRouter = this.initialUseModelRouter;
|
||||||
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [
|
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [];
|
||||||
AuthType.LOGIN_WITH_GOOGLE,
|
|
||||||
];
|
|
||||||
this.enableMessageBusIntegration =
|
this.enableMessageBusIntegration =
|
||||||
params.enableMessageBusIntegration ?? false;
|
params.enableMessageBusIntegration ?? false;
|
||||||
this.codebaseInvestigatorSettings = {
|
this.codebaseInvestigatorSettings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user