@@ -47,7 +47,6 @@ import {
4747 DEFAULT_GEMINI_EMBEDDING_MODEL ,
4848 DEFAULT_GEMINI_FLASH_MODEL ,
4949 DEFAULT_GEMINI_MODEL ,
50- DEFAULT_GEMINI_MODEL_AUTO ,
5150 DEFAULT_THINKING_MODE ,
5251} from './models.js' ;
5352import { shouldAttemptBrowserLaunch } from '../utils/browser.js' ;
@@ -279,7 +278,6 @@ export interface ConfigParameters {
279278 policyEngineConfig ?: PolicyEngineConfig ;
280279 output ?: OutputSettings ;
281280 useModelRouter ?: boolean ;
282- disableModelRouterForAuth ?: AuthType [ ] ;
283281 enableMessageBusIntegration ?: boolean ;
284282 codebaseInvestigatorSettings ?: CodebaseInvestigatorSettings ;
285283 continueOnFailedApiCall ?: boolean ;
@@ -376,9 +374,7 @@ export class Config {
376374 private readonly messageBus : MessageBus ;
377375 private readonly policyEngine : PolicyEngine ;
378376 private readonly outputSettings : OutputSettings ;
379- private useModelRouter : boolean ;
380- private readonly initialUseModelRouter : boolean ;
381- private readonly disableModelRouterForAuth ?: AuthType [ ] ;
377+ private readonly useModelRouter : boolean ;
382378 private readonly enableMessageBusIntegration : boolean ;
383379 private readonly codebaseInvestigatorSettings : CodebaseInvestigatorSettings ;
384380 private readonly continueOnFailedApiCall : boolean ;
@@ -474,11 +470,7 @@ export class Config {
474470 this . enableToolOutputTruncation = params . enableToolOutputTruncation ?? true ;
475471 this . useSmartEdit = params . useSmartEdit ?? true ;
476472 this . useWriteTodos = params . useWriteTodos ?? false ;
477- this . initialUseModelRouter = params . useModelRouter ?? false ;
478- this . useModelRouter = this . initialUseModelRouter ;
479- this . disableModelRouterForAuth = params . disableModelRouterForAuth ?? [
480- AuthType . LOGIN_WITH_GOOGLE ,
481- ] ;
473+ this . useModelRouter = params . useModelRouter ?? false ;
482474 this . enableMessageBusIntegration =
483475 params . enableMessageBusIntegration ?? false ;
484476 this . codebaseInvestigatorSettings = {
@@ -549,16 +541,6 @@ export class Config {
549541 }
550542
551543 async refreshAuth ( authMethod : AuthType ) {
552- this . useModelRouter = this . initialUseModelRouter ;
553- if ( this . disableModelRouterForAuth ?. includes ( authMethod ) ) {
554- this . useModelRouter = false ;
555- if ( this . model === DEFAULT_GEMINI_MODEL_AUTO ) {
556- this . model = DEFAULT_GEMINI_MODEL ;
557- }
558- } else {
559- this . model = DEFAULT_GEMINI_MODEL_AUTO ;
560- }
561-
562544 // Vertex and Genai have incompatible encryption and sending history with
563545 // thoughtSignature from Genai to Vertex will fail, we need to strip them
564546 if (
0 commit comments