fix(core): Allow model to be set from settings.json (#5527)

This commit is contained in:
Richie Foreman
2025-08-04 16:41:58 -04:00
committed by GitHub
parent 48fa6f84c8
commit fb6d9cbd36
3 changed files with 66 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ export async function parseArguments(): Promise<CliArgs> {
alias: 'm',
type: 'string',
description: `Model`,
default: process.env.GEMINI_MODEL || DEFAULT_GEMINI_MODEL,
default: process.env.GEMINI_MODEL,
})
.option('prompt', {
alias: 'p',
@@ -444,7 +444,7 @@ export async function loadCliConfig(
cwd: process.cwd(),
fileDiscoveryService: fileService,
bugCommand: settings.bugCommand,
model: argv.model!,
model: argv.model || settings.model || DEFAULT_GEMINI_MODEL,
extensionContextFilePaths,
maxSessionTurns: settings.maxSessionTurns ?? -1,
experimentalAcp: argv.experimentalAcp || false,