Preview
Message | Streaming | Elements | Audio | Ask User | Chat History | Chat Profiles | Feedback |
---|---|---|---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
<body>
tag:
http://localhost:8000
window.toggleChainlitCopilot()
.
threadId
in the browser’s localStorage, enabling chat restoration after a page reload. This feature provides two JavaScript utility functions for managing thread persistence:
string | null
- The current threadId or null if not found
newThreadId?
(optional): string
- A new threadId to set after clearingmountChainlitWidget
function accepts the following options:
CopilotFunction
in your Chainlit server:
@cl.on_message
decorated function to your Chainlit server:
CHAINLIT_COOKIE_SAMESITE=none
to the Chainlit app env
variables.accessToken
. Here are examples of how to generate the token in different languages:
CHAINLIT_AUTH_SECRET
you generated when configuring
authentication.