diff --git a/litellm/router.py b/litellm/router.py index fd80a7b3cf0..da7ff455208 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -307,16 +307,18 @@ def model_info_is_active_for_environment(model_info: Mapping[str, object] | None _PreRoutingStrategyT = TypeVar("_PreRoutingStrategyT") -_HTTP_FRAMING_HEADERS: frozenset[str] = frozenset({ - "content-length", - "transfer-encoding", - "content-encoding", - "content-type", - "set-cookie", - "cookie", - "proxy-authenticate", - "proxy-authorization", -}) +_HTTP_FRAMING_HEADERS: frozenset[str] = frozenset( + { + "content-length", + "transfer-encoding", + "content-encoding", + "content-type", + "set-cookie", + "cookie", + "proxy-authenticate", + "proxy-authorization", + } +) def _strip_http_framing_headers(exc: BaseException) -> None: