mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Update request body method to return JSON
When you try to copy-paste the curl command from log directly into a shell, single quotes in `-d` param will make an `INVALID_ARGUMENT` 400 error
This commit is contained in:
parent
08be1e52ae
commit
4e7566c7a2
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 str(data)
|
||||
return json.dumps(data)
|
||||
|
||||
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