resolved greptile bufs

This commit is contained in:
shivam 2026-02-12 18:18:58 -08:00
parent cfbf089204
commit f7c3c9964b
2 changed files with 12 additions and 11 deletions

View file

@ -901,17 +901,18 @@ async def add_litellm_data_to_request( # noqa: PLR0915
## Cache Controls
headers = request.headers
verbose_proxy_logger.debug(
"Request Headers: %s",
clean_headers(
headers,
litellm_key_header_name=(
general_settings.get("litellm_key_header_name")
if general_settings is not None
else None
if verbose_proxy_logger.isEnabledFor(logging.DEBUG):
verbose_proxy_logger.debug(
"Request Headers: %s",
clean_headers(
headers,
litellm_key_header_name=(
general_settings.get("litellm_key_header_name")
if general_settings is not None
else None
),
),
),
)
)
cache_control_header = headers.get("Cache-Control", None)
if cache_control_header:
cache_dict = parse_cache_control(cache_control_header)

View file

@ -7268,7 +7268,7 @@ def get_valid_models(
_SENSITIVE_HEADER_KEYS = frozenset(
{"authorization", "x-api-key", "api-key", "x-litellm-api-key", "x-goog-api-key", "ocp-apim-subscription-key"}
{"authorization", "x-api-key", "api-key", "x-litellm-api-key", "x-goog-api-key", "ocp-apim-subscription-key", "x-mcp-auth"}
)