fix: treat AWS SSO token errors as auth for model failover

This commit is contained in:
Guy Elia 2026-01-29 19:27:02 +02:00 committed by Guy Elia
parent cb4b3f74b5
commit 08453b0456

View File

@ -388,6 +388,10 @@ const ERROR_PATTERNS = {
/\b403\b/,
"no credentials found",
"no api key found",
// AWS SSO / aws-sdk auth resolution errors (e.g. Bedrock)
"sso session token",
"error loading sso token",
"was not found or is invalid",
],
format: [
"string should match pattern",