fix(failover): treat stop reason error as timeout

This commit is contained in:
Peter Steinberger
2026-03-03 01:05:06 +00:00
parent a2fdc3415f
commit 1bd20dbdb6
5 changed files with 19 additions and 4 deletions

View File

@@ -641,8 +641,8 @@ const ERROR_PATTERNS = {
"deadline exceeded",
"context deadline exceeded",
/without sending (?:any )?chunks?/i,
/\bstop reason:\s*abort\b/i,
/\breason:\s*abort\b/i,
/\bstop reason:\s*(?:abort|error)\b/i,
/\breason:\s*(?:abort|error)\b/i,
/\bunhandled stop reason:\s*(?:abort|error)\b/i,
],
billing: [