mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* test(router): black-box tests for caller credential failures and shared deployment cooldown * fix(router): keep a caller's own credential failure off the shared deployment A call that ran with a provider credential or target the caller sent (an AWS key or profile, Vertex credentials or project, an Azure AD token or api_version, an OpenAI organization) and that differs from the deployment's configured value no longer cools down the shared deployment, so one caller's bad value cannot lock every other caller out of the model group. * fix(router): blame a caller field only for the failure it can cause, on every failure path A caller credential (AWS keys and profile, Vertex credentials, an Azure AD token) is blamed for any failure, a target (Azure api_version, AWS region, Vertex project and location) only for a 404, and an OpenAI organization only for a 401 or 403. A value that matches the environment default litellm reads counts as the deployment's own. Both caller rules now run inside the shared failure exits, so the walk, a stream that fails before its first chunk and a failed fallback hop all spare the shared deployment the same way. * test(router): drop unit cases the black-box cooldown tests already cover * fix(router): compare caller AWS keys with env defaults, skip a token azure_ai ignores next to an api key * refactor(router): blame a caller field only from what the caller sent, drop env and provider-precedence rules * fix(router): blame a caller's Azure token or Vertex credentials only for an auth rejection * fix(router): blame caller Vertex credentials for the 404 a project they pick can cause * test(router): await stream recordings instead of sleeping in the vertex stream cooldown test |
||
|---|---|---|
| .. | ||
| 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 | ||