Enable model routing for all users (#12300)

This commit is contained in:
Victor May
2025-10-30 18:29:24 -04:00
committed by GitHub
parent c6a7107f78
commit 643f2c0958
2 changed files with 2 additions and 4 deletions

View File

@@ -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 () => {

View File

@@ -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 = {