From c7edad89d4bf60f67407898749d8f75ce8ac0243 Mon Sep 17 00:00:00 2001 From: Deepanshu Date: Wed, 22 Jul 2026 09:38:37 -0400 Subject: [PATCH] fix(router): restore Fallbacks context in no-fallback log; document update_team mcp_rpm_limit The log and debug message when no fallback model group is found was missing the Fallbacks list, making it hard to understand why routing failed. Also adds the missing mcp_rpm_limit documentation to update_team to fix the documentation_test_api_docs CI check. --- litellm/router.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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: