mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
* feat(proxy): optionally omit LiteLLM response headers across HTTP paths Signed-off-by: Jaeyeon Kim <anencore94@gmail.com> * fix(proxy): preserve typed headers without rebinding messages Signed-off-by: Jaeyeon Kim <anencore94@gmail.com> * refactor(proxy): inject the header opt-out setting into the middleware * fix(proxy): apply the header opt-out to unhandled 500 responses The unhandled exception handler runs outside the middleware stack, so its x-litellm-call-id header was not filtered. Also type the middleware test. * refactor(proxy): share one typed header opt-out check A named function replaces the lambda so the type gate stays at its merge-base count, and the 500 handler filters raw headers in place. --------- Signed-off-by: Jaeyeon Kim <anencore94@gmail.com> Co-authored-by: Jaeyeon Kim <anencore94@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admission_control_middleware.py | ||
| test_billable_request_metrics_middleware.py | ||
| test_budget_reservation_release_middleware.py | ||
| test_gzip_middleware.py | ||
| test_in_flight_requests_middleware.py | ||
| test_litellm_response_headers_middleware.py | ||
| 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 | ||