mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 23:51:19 +08:00
_request_json used a fixed two-attempt loop, so with N configured keys only the first two were ever tried before MinerUError was raised after consecutive 429s. Follow the #1499 retry-budget semantics used by the LLM/embedding paths: attempts = max(2, len(key_pool)). Behavior is unchanged for single- and two-key setups; pools with three or more keys can now actually rotate past two rate-limited keys.