Options
The chain of thought (COT) is a feature that shows the user the steps the
chatbot took to reach a conclusion. You can hide the COT, only show the tool
calls, or show it in full.
Passing this option will display a Github-shaped link. If not passed we will
display the link to Chainlit repo.
Custom JavaScript file tag attributes, i.e.
<script src="public/custom.js" ... ></script>Switch between two available alert styles:
'classic': Traditional left-border style'modern': Rounded corners with softer borders and transparent background
Content of the
<meta property="og:url"> tag. Used in link previews (e.g. iMessage, Twitter). Defaults to the Chainlit GitHub repository URL if not set.Force a specific UI language for all users, overriding the browser’s language preference.
Accepts any locale code present in
.chainlit/translations/ (e.g. en-US, fr-FR, he-IL).
When unset (default), the language is detected from the user’s browser.Since version 2.9.3.
Additional links displayed in the header next to (or replacing, if not provided) the GitHub link.
Each link supports an optional
target field to control how the link opens: _blank (default), _self, _parent, or _top.The
target field is available since version 2.8.3.Whether to show a confirmation dialog when the user clicks “New Chat”.
Set to
false to skip the dialog and immediately clear the chat.Since version 2.9.6.
Where to display chat settings.
"message_composer" shows them in a modal triggered from the composer.
"sidebar" moves them to a resizable right sidebar with a gear icon toggle in the header.Since version 2.9.6.
Whether the chat settings sidebar is open when the page loads. Only applies when
chat_settings_location is set to "sidebar".Since version 2.9.6.