We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0d3fd commit 95bba31Copy full SHA for 95bba31
1 file changed
bin/chat-chainlit.py
@@ -57,8 +57,8 @@ async def chat_profiles() -> list[cl.ChatProfile]:
57
58
@cl.on_chat_start
59
async def start() -> None:
60
- thread_id: str = cl.user_session.get("id")
61
- cl.user_session.set("thread_id", thread_id)
+ if cl.user_session.get("thread_id") is None:
+ cl.user_session.set("thread_id", cl.user_session.get("id"))
62
await static_messages(config, TriggerEvent.on_chat_start)
63
64
0 commit comments