fix(provider): retry Codex server_error

Mid-stream response.failed events from OpenAI carry
'server_error' (underscore), but the transient-error marker
list only had 'server error' (space). is_transient_response
missed it, so the retry loop gave up on the first attempt
instead of using its normal 1s/2s/4s backoff.
This commit is contained in:
akinolur
2026-08-21 10:52:34 +08:00
committed by chengyongru
parent 415df576b4
commit c7710238a8
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -326,6 +326,7 @@ class LLMProvider(ABC):
"timed out",
"connection",
"server error",
"server_error",
"temporarily unavailable",
"速率限制",
"访问量过大",