chainlit
chainlit copied to clipboard
Chainlit Session Is Disconnecting Immediately After @cl.on_chat_start Hook
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?