litellm/tests/unit/proxy/middleware
Nate Armstrong 00d8239818
refactor(proxy): classify billable requests through one Rust route table (#53996)
Moves classify_billable_request's route table into litellm-core-utils billable_route and exposes it to the proxy as classify_billable_route, so the proxy's BillableRequestMetricsMiddleware and the Rust gateway's request volume middleware count the same requests under the same routes. The EU JEV decision route /eu_jev/v1/systemone is now an exact route in that table, so it bills on POST whether the built-in route or an operator's own pass-through at that path serves it. The pass-through prefixes are now a fixed list, kept in step with LiteLLMRoutes.mapped_pass_through_routes by a test
2026-11-23 20:47:48 -08:00
..
__init__.py
test_admission_control_middleware.py
test_billable_request_metrics_middleware.py refactor(proxy): classify billable requests through one Rust route table (#53996) 2026-11-23 20:47:48 -08:00
test_budget_reservation_release_middleware.py feat(budgets): replace the python budget hold and settle engine with a rust engine admitted at auth (#51535) 2026-11-15 16:03:51 -08:00
test_gzip_middleware.py
test_in_flight_requests_middleware.py
test_litellm_response_headers_middleware.py feat(proxy): let operators omit x-litellm-* response headers (#52949) 2026-11-19 15:27:34 -08:00
test_per_request_root_path_middleware.py
test_prometheus_auth_middleware.py
test_prometheus_auth_middleware_asgi.py
test_request_body_decompression_middleware.py
test_request_size_limit_middleware.py
test_security_headers_middleware.py