diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index ecfc76d34ae..4923e058e2f 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -1150,7 +1150,7 @@ class Logging(LiteLLMLoggingBaseClass): verbose_logger.debug(f"\033[92m{curl_command}\033[0m\n") def _get_request_body(self, data: dict) -> str: - return json.dumps(data) + return json.dumps(data, default=str) def _get_request_curl_command( self, api_base: str, headers: Optional[dict], additional_args: dict, data: dict