fix: treat credential validation failures as auth errors for fallback (#761)

This commit is contained in:
Sebastian
2026-01-12 22:48:37 -05:00
parent c08441c42c
commit c4014c0092
3 changed files with 27 additions and 1 deletions

View File

@@ -361,6 +361,9 @@ const ERROR_PATTERNS = {
"token has expired",
/\b401\b/,
/\b403\b/,
// Credential validation failures should trigger fallback (#761)
"no credentials found",
"no api key found",
],
format: [
"invalid_request_error",