mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
add log
This commit is contained in:
parent
dc8ae16d84
commit
a05a955653
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ class LangFuseLogger:
|
|||
):
|
||||
from langfuse.model import CreateTrace, CreateGeneration
|
||||
|
||||
print(
|
||||
"Please upgrade langfuse to v2.0.0 or higher: https://github.com/langfuse/langfuse-python/releases/tag/v2.0.1"
|
||||
)
|
||||
|
||||
trace = self.Langfuse.trace(
|
||||
CreateTrace(
|
||||
name=metadata.get("generation_name", "litellm-completion"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue