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 fix(anthropic_endpoints)!: return Anthropic error envelopes on /v1/messages auth failures (#48466) 2026-11-03 01:53:29 +00:00
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 fix(proxy): limit gzip to dashboard analytics and offload compression (#46712) 2026-10-15 17:27:03 -07:00
test_in_flight_requests_middleware.py test(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00
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(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00
test_prometheus_auth_middleware.py test(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00
test_prometheus_auth_middleware_asgi.py test(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00
test_request_body_decompression_middleware.py feat(skills): let authors edit and withdraw pending submissions (#51312) 2026-11-12 08:30:10 -08:00
test_request_size_limit_middleware.py feat(skills): let authors edit and withdraw pending submissions (#51312) 2026-11-12 08:30:10 -08:00
test_security_headers_middleware.py test(proxy): move middleware, spend_tracking, pass_through, common_utils and root proxy tests into tests/unit/proxy (#44015) 2026-10-01 18:23:31 +00:00