fix: default authType fallback

This commit is contained in:
mingholy.lmh 2026-01-08 18:30:31 +08:00
parent 2b511d0b83
commit 36c142951a
2 changed files with 4 additions and 3 deletions

View file

@ -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;