mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
A stream's failure handed to retry_stream or fallback_stream no longer keeps the slot of the call it came from, so a recovery that serves nothing does not hand back another attempt's error. The legacy Router member async_routing_strategy_pre_call_checks now cools a deployment down through the Rust core, as the main path does when a pre-call check refuses an attempt. It called the Python copy of the cooldown rule, which would have needed the same fix a second time. That copy in cooldown_handlers.py has no caller left and is not changed here. The router tests that pinned the old behavior now pin the new one. A lone deployment with a fallback goes to the fallback on its first 429 without spending the request's retries, and a retry goes to a deployment the request has not failed on, a weight 0 one included. The tests about retries before a fallback script a 500, which still retries. |
||
|---|---|---|
| .. | ||
| core | ||
| __init__.py | ||
| test_enforce_model_rate_limits.py | ||
| test_io_token_rate_limits.py | ||
| test_router.py | ||
| test_router_callback_hook_sequence.py | ||
| test_router_endpoints.py | ||
| test_router_entry_points.py | ||
| test_router_facade.py | ||
| test_router_fallbacks.py | ||
| test_router_fuzz_regressions_rust_only.py | ||
| test_router_get_deployments.py | ||
| test_router_helper_utils.py | ||
| test_router_host.py | ||
| test_router_max_parallel_requests.py | ||
| test_router_provider_endpoints.py | ||
| test_router_retries.py | ||
| test_router_surface_check.py | ||
| test_router_timeout.py | ||
| test_router_vector_store_endpoints.py | ||