mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-19 08:02:30 +00:00
fix(providers): recognize Chinese rate-limit marker '访问量过大' as transient error
This commit is contained in:
parent
0ca0fe2221
commit
82c323c2d9
@ -112,6 +112,7 @@ class LLMProvider(ABC):
|
||||
"server error",
|
||||
"temporarily unavailable",
|
||||
"速率限制",
|
||||
"访问量过大",
|
||||
)
|
||||
_RETRYABLE_STATUS_CODES = frozenset({408, 409, 429})
|
||||
_TRANSIENT_ERROR_KINDS = frozenset({"timeout", "connection"})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user