forked from phoenix/litellm-mirror
fix(openai.py): handling extra headers
This commit is contained in:
parent
9e072f87bd
commit
a94c09c13c
6 changed files with 98 additions and 118 deletions
|
@ -506,6 +506,8 @@ class Logging:
|
|||
|
||||
# User Logging -> if you pass in a custom logging function
|
||||
headers = additional_args.get("headers", {})
|
||||
if headers is None:
|
||||
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()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue