forked from phoenix/litellm-mirror
(feat) Add sessionId for Langfuse.
This commit is contained in:
parent
646764f1d4
commit
26e68c3f67
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ class LangFuseLogger:
|
||||||
"output": output,
|
"output": output,
|
||||||
"user_id": metadata.get("trace_user_id", user_id),
|
"user_id": metadata.get("trace_user_id", user_id),
|
||||||
"id": metadata.get("trace_id", None),
|
"id": metadata.get("trace_id", None),
|
||||||
|
"session_id": metadata.get("session_id", None),
|
||||||
}
|
}
|
||||||
cost = kwargs["response_cost"]
|
cost = kwargs["response_cost"]
|
||||||
print_verbose(f"trace: {cost}")
|
print_verbose(f"trace: {cost}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue