chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Chainlit Session Is Disconnecting Immediately After @cl.on_chat_start Hook

Open Redwood-The-Wise opened this issue 10 months ago • 2 comments
trafficstars

I am creating a chainlit chat assistant that utilized fastAPI to communicate with my frontend application. However, when the user reaches the webpage that utilizes the chatbot it triggers the @cl.on_chat_start hook, then triggers the @cl.on_chat_end hook. The application never reaches the @cl.on_message hook. Whenever the app is ran, I get a session_disconnected error before chats can take place. I am utilizing the mount_chainlit function in the fastapi app to call the chainlit app. Is this a known issue?

Redwood-The-Wise avatar Dec 26 '24 17:12 Redwood-The-Wise