mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
fix: default authType fallback
This commit is contained in:
parent
2b511d0b83
commit
36c142951a
2 changed files with 4 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ export async function validateNonInteractiveAuth(
|
|||
const authType = nonInteractiveConfig.modelsConfig.getCurrentAuthType();
|
||||
if (!authType) {
|
||||
throw new Error(
|
||||
'No auth type is selected. Please configure an auth type (e.g. via settings) before running in non-interactive mode.',
|
||||
'No auth type is selected. Please configure an auth type (e.g. via settings or `--auth-type`) before running in non-interactive mode.',
|
||||
);
|
||||
}
|
||||
const resolvedAuthType: NonNullable<typeof authType> = authType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue