litellm/tests/unit/router_utils
edvinsq 34d6cb39d2
refactor(typing): clear basedpyright Any errors across 35 files (#53599)
* refactor(typing): narrow Any-typed values in proxy, logging and router helpers

* refactor(typing): narrow Any in model sorting, harness deps and provider transforms

* refactor(typing): narrow Any in key info, streaming hooks and shared types

* fix(typing): keep proxy client SDK return shapes and stop cooldown tests reloading proxy_server

The SDK list, info and stream helpers return Mapping, Sequence and JsonValue shapes validated by pydantic instead of bare object. The cooldown test fixture no longer reloads litellm.proxy.proxy_server, which swapped the FastAPI app under test_proxy_server's dependency overrides when both files shared a worker.

* fix(typing): accept the single deployment object in proxy client model info

* refactor(typing): leave the code-owned spend log rows file unchanged

* refactor(typing): keep public types callers can pass and leave the proxy client SDK as main has it

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-24 00:39:02 +00:00
..
pre_call_checks feat(vertex_ai): add Meta Muse models on Vertex AI (#50768) 2026-11-21 13:00:24 -08:00
__init__.py
test_access_windows.py
test_add_retry_fallback_headers.py fix(responses): accept a string or tuple allowed_openai_params on Responses models instead of answering 500 (#51751) 2026-11-14 04:32:38 -05:00
test_client_initalization_utils.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_cooldown_cache.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
test_cooldown_handlers.py refactor(typing): clear basedpyright Any errors across 35 files (#53599) 2026-11-24 00:39:02 +00:00
test_deployment_pricing.py
test_dynamic_queue.py feat(router): add bounded congestion queue controller (#51883) 2026-11-17 17:15:24 -08:00
test_dynamic_queue_redis.py feat(router): coordinate congestion queues through Redis (#52367) 2026-11-17 19:29:39 -08:00
test_dynamic_queue_router.py feat(router): queue congested provider requests by priority (#51892) 2026-11-17 21:26:21 -08:00
test_embedding_batch_size_check.py
test_endpoint_eligibility.py refactor(router): delete router code nothing calls (#52516) 2026-11-19 06:11:10 +09:00
test_fallback_event_handlers.py refactor(router): delete router code nothing calls (#52516) 2026-11-19 06:11:10 +09:00
test_fallback_event_v2_dispatch.py feat(custom-logger-v2): add types, dispatcher and route callback call sites (step 0) (#51214) 2026-11-13 22:08:05 +00:00
test_get_retry_from_policy.py
test_handle_error.py refactor(router): delete router code nothing calls (#52516) 2026-11-19 06:11:10 +09:00
test_health_check_allowed_fails_integration.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
test_health_state_cache.py feat(redis): serve the health checks' deployment states from a native store (#50357) 2026-11-13 03:22:28 +00:00
test_kubernetes_pod_discovery.py refactor(router): delete router code nothing calls (#52516) 2026-11-19 06:11:10 +09:00
test_pattern_match_deployments.py refactor(typing): clear 1146 basedpyright Any errors across 365 files (#52768) 2026-11-21 04:25:33 +00:00
test_prompt_caching_cache.py
test_ptu_shares.py
test_reasoning_effort_capability.py fix(azure_ai): send reasoning_effort to Foundry reasoning models (#51775) 2026-11-16 16:40:16 -08:00
test_request_priority.py
test_router_health_check_routing.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_router_interactions_endpoints.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_router_utils_common_utils.py fix(responses): accept a string or tuple allowed_openai_params on Responses models instead of answering 500 (#51751) 2026-11-14 04:32:38 -05:00
test_routing_read_batch.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00