mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
num_retries_per_request has always capped the retries of one request with its fallback hops included. #40930 started reading the per-hop attempted_retries counter instead, and every fallback hop restarts that counter at zero, so a request could spend a fresh retry budget on each hop and the legacy fallback cap test started seeing the hop run. Router.log_retry now also keeps request_retry_count on the request metadata, incremented on every retry and fallback hop and never truncated the way previous_models is, and max_retries_per_request_hit reads that count. The flat retry records, the litellm_metadata coverage and caps above four from #40930 stay as they are, and the legacy test goes back to its previous_models == 0 assertion. |
||
|---|---|---|
| .. | ||
| native_route_wheel_test.py | ||
| test_bindings.py | ||
| test_chat_completions.py | ||
| test_configuration.py | ||
| test_lifecycle.py | ||
| test_ocr_lifecycle.py | ||
| test_runtime.py | ||
| test_token_counter.py | ||
| test_verify_linux_native_wheel.py | ||