Skip to content

Your lightweight open-source personal agent.

fix(providers): recognize Chinese rate-limit marker '访问量过大' as transient error

chengyongru400f8226011b
diff --git a/nanobot/providers/base.py b/nanobot/providers/base.py
index f120fb9b3..98f048db6 100644
--- a/nanobot/providers/base.py
+++ b/nanobot/providers/base.py
@@ -112,6 +112,7 @@ class LLMProvider(ABC):
"server error",
"temporarily unavailable",
"速率限制",
+ "访问量过大",
)
_RETRYABLE_STATUS_CODES = frozenset({408, 409, 429})
_TRANSIENT_ERROR_KINDS = frozenset({"timeout", "connection"})