mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) langfuse logging, append time to logs
This commit is contained in:
parent
93d1c828c0
commit
23930cadbb
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class LangFuseLogger:
|
|||
if generation_name is None:
|
||||
# just log `litellm-{call_type}` as the generation name
|
||||
generation_name = f"litellm-{kwargs.get('call_type', 'completion')}"
|
||||
response_id = response_obj.get("id", None)
|
||||
response_id = response_obj.get("id", None) + "-time-" + str(end_time)
|
||||
trace_params = {
|
||||
"name": generation_name,
|
||||
"input": input,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue