mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
(feat) completion: sagemaker debugging - show boto3 request sent
This commit is contained in:
parent
9b5f52ae63
commit
d0538e32c9
1 changed files with 5 additions and 2 deletions
|
@ -572,9 +572,12 @@ class Logging:
|
|||
curl_command += f"{api_base} \\\n"
|
||||
curl_command += f"{formatted_headers} \\\n" if formatted_headers.strip() != "" else ""
|
||||
curl_command += f"-d '{str(data)}'\n"
|
||||
if api_base == "":
|
||||
if additional_args.get("request_str", None) is not None:
|
||||
# print the sagemaker / bedrock client request
|
||||
curl_command = "\nRequest Sent from LiteLLM:\n"
|
||||
curl_command += additional_args.get("request_str", None)
|
||||
elif api_base == "":
|
||||
curl_command = self.model_call_details
|
||||
|
||||
print_verbose(f"\033[92m{curl_command}\033[0m\n")
|
||||
if self.logger_fn and callable(self.logger_fn):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue