File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,16 @@ async function startMcpServer() {
134134 await config . refreshAuth ( selectedAuthType ) ;
135135 console . log ( `Using authentication method: ${ selectedAuthType } ` ) ;
136136
137+ // Check for the custom tools model environment variable
138+ const toolsDefaultModel = process . env . GEMINI_TOOLS_DEFAULT_MODEL ;
139+ if ( toolsDefaultModel && toolsDefaultModel . trim ( ) !== '' ) {
140+ config . setModel ( toolsDefaultModel . trim ( ) ) ;
141+ console . log ( `🚀 Using custom model for tools: ${ toolsDefaultModel . trim ( ) } ` ) ;
142+ } else {
143+ // Log the default model being used if the environment variable is not set
144+ console . log ( `⚙️ Using default model for tools: ${ config . getModel ( ) } ` ) ;
145+ }
146+
137147 // 4. 初始化并启动 MCP 桥接服务 和 OpenAI 服务
138148 const mcpBridge = new GcliMcpBridge ( config , cliVersion ) ;
139149
You can’t perform that action at this time.
0 commit comments