We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d62ed4 commit b72a101Copy full SHA for b72a101
wdoc/utils/llm.py
@@ -6,6 +6,7 @@
6
from typing import Union, List, Any, Optional
7
import os
8
from typing import Dict
9
+import uuid
10
11
from langchain_core.callbacks import BaseCallbackHandler
12
from langchain_core.agents import AgentAction, AgentFinish
@@ -41,6 +42,7 @@
41
42
secret_key=os.environ["LANGFUSE_SECRET_KEY"],
43
public_key=os.environ["LANGFUSE_PUBLIC_KEY"],
44
host=os.environ["LANGFUSE_HOST"],
45
+ session_id=str(uuid.uuid4()),
46
)]
47
except Exception as e:
48
red(f"Failed to setup langfuse callback, make sure package 'langfuse' is installed. The error was: ''{e}'")
0 commit comments