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.
This commit is contained in:
Deepanshu 2026-07-22 09:38:37 -04:00
parent a1c933d17d
commit c7edad89d4

View file

@ -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: