mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Update _get_request_body to use default=str
Modify JSON serialization to handle non-serializable types.
This commit is contained in:
parent
4e7566c7a2
commit
c5db905f88
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue