Merge pull request #2120 from gaoren002/fix/rate-limit-429-cooldown-config

fix(rate-limit): make 429 fallback cooldown configurable
This commit is contained in:
Wesley Liddick
2026-05-05 19:46:11 +08:00
committed by GitHub
15 changed files with 520 additions and 12 deletions
+4
View File
@@ -948,6 +948,10 @@ rate_limit:
# 上游返回 529(过载)时的冷却时间(分钟)
overload_cooldown_minutes: 10
# Default cooldown time (in seconds) when upstream returns 429 without a reset time
# 上游返回 429 且无明确重置时间时的默认回避时间(秒)
rate_limit_429_cooldown_seconds: 5
# =============================================================================
# Pricing Data Source (Optional)
# 定价数据源(可选)