mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
fix(core): Allow model to be set from settings.json (#5527)
This commit is contained in:
parent
8da6d23688
commit
11808ef7ed
3 changed files with 66 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue