Skip to content

Commit 643f2c0

Browse files
authored
Enable model routing for all users (#12300)
1 parent c6a7107 commit 643f2c0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/core/src/config/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ describe('Server Config (config.ts)', () => {
563563
useModelRouter: true,
564564
});
565565
await config.refreshAuth(AuthType.LOGIN_WITH_GOOGLE);
566-
expect(config.getUseModelRouter()).toBe(false);
566+
expect(config.getUseModelRouter()).toBe(true);
567567
});
568568

569569
it('should enable model router by default for other auth types', async () => {

packages/core/src/config/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,7 @@ export class Config {
485485
this.useWriteTodos = params.useWriteTodos ?? false;
486486
this.initialUseModelRouter = params.useModelRouter ?? false;
487487
this.useModelRouter = this.initialUseModelRouter;
488-
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [
489-
AuthType.LOGIN_WITH_GOOGLE,
490-
];
488+
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [];
491489
this.enableMessageBusIntegration =
492490
params.enableMessageBusIntegration ?? false;
493491
this.codebaseInvestigatorSettings = {

0 commit comments

Comments
 (0)