fix: RPS don't print the request params by default (#14015)

This commit is contained in:
Ishaan Jaff 2025-08-29 12:06:54 -07:00 committed by GitHub
parent 7f5c92ddeb
commit 6edc5c18de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
import asyncio
import json
import logging
import traceback
from datetime import datetime
from typing import (
@ -385,11 +386,12 @@ class ProxyBaseLLMRequestProcessing:
"""
Common request processing logic for both chat completions and responses API endpoints
"""
verbose_proxy_logger.debug(
"Request received by LiteLLM:\n{}".format(
json.dumps(self.data, indent=4, default=str)
),
)
if verbose_proxy_logger.isEnabledFor(logging.DEBUG):
verbose_proxy_logger.debug(
"Request received by LiteLLM:\n{}".format(
json.dumps(self.data, indent=4, default=str)
),
)
self.data, logging_obj = await self.common_processing_pre_call_logic(
request=request,