mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
fix: use resolved authType to initialize ACP agent
This commit is contained in:
parent
7177b41120
commit
2c9399f8e0
9 changed files with 75 additions and 68 deletions
|
|
@ -19,7 +19,9 @@ export async function validateNonInteractiveAuth(
|
|||
): Promise<Config> {
|
||||
try {
|
||||
// Get the actual authType from config which has already resolved CLI args, env vars, and settings
|
||||
const authType = nonInteractiveConfig.modelsConfig.getCurrentAuthType();
|
||||
const authType = nonInteractiveConfig
|
||||
.getModelsConfig()
|
||||
.getCurrentAuthType();
|
||||
if (!authType) {
|
||||
throw new Error(
|
||||
'No auth type is selected. Please configure an auth type (e.g. via settings or `--auth-type`) before running in non-interactive mode.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue