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 ad31488 commit f12c0f3Copy full SHA for f12c0f3
src/arduino/app_bricks/cloud_llm/cloud_llm.py
@@ -12,6 +12,7 @@
12
from langchain_core.messages import SystemMessage
13
from langchain_core.output_parsers import StrOutputParser
14
from langchain_core.chat_history import InMemoryChatMessageHistory
15
+from langsmith import uuid7
16
17
from arduino.app_utils import Logger, brick
18
@@ -79,7 +80,7 @@ def __init__(
79
80
timeout=self._timeout,
81
)
82
self._parser = StrOutputParser()
- self._history_cfg = {"configurable": {"session_id": "default_session"}}
83
+ self._history_cfg = {"configurable": {"session_id": uuid7()}}
84
85
core_chain = self._prompt | self._model | self._parser
86
self._chain = RunnableWithMessageHistory(
0 commit comments