mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(openai.py): handling extra headers
This commit is contained in:
parent
56838ee815
commit
a6e9f147d3
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