mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
feat(utils.py): json logs for raw request sent by litellm
make it easier to view verbose logs in datadog
This commit is contained in:
parent
f0e48cdd53
commit
b46db8b891
5 changed files with 18 additions and 7 deletions
|
@ -73,10 +73,6 @@ class LangsmithLogger:
|
|||
elif type(value) != dict and is_serializable(value=value):
|
||||
new_kwargs[key] = value
|
||||
|
||||
print(f"type of response: {type(response_obj)}")
|
||||
for k, v in new_kwargs.items():
|
||||
print(f"key={k}, type of arg: {type(v)}, value={v}")
|
||||
|
||||
if isinstance(response_obj, BaseModel):
|
||||
try:
|
||||
response_obj = response_obj.model_dump()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue