mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
(fix) debugging: POST request
This commit is contained in:
parent
e8b844abae
commit
37dedeee04
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ class Logging:
|
|||
headers = {}
|
||||
data = additional_args.get("complete_input_dict", {})
|
||||
api_base = additional_args.get("api_base", "")
|
||||
masked_headers = {k: v[:-40] + '*' * 40 if len(v) > 40 else v for k, v in headers.items()}
|
||||
masked_headers = {k: v[:-20] + '*' * 20 if len(v) > 20 else v for k, v in headers.items()}
|
||||
formatted_headers = " ".join([f"-H '{k}: {v}'" for k, v in masked_headers.items()])
|
||||
|
||||
print_verbose(f"PRE-API-CALL ADDITIONAL ARGS: {additional_args}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue