chainlit
chainlit copied to clipboard
Toggle-able Buttons on Chat (i.e. Web Search, Reason, Deep Research etc)
Is your feature request related to a problem? Please describe. OpenAI and other LLM Web apps currently have toggle-able buttons for the chat to showcase different behaviours (i.e. enable reasoning, enable web search etc). It would be great for Chainlit to support it.
Describe the solution you'd like A Toggle-able button is akin to a Chat Setting, but it is shown in the chat bar.
Describe alternatives you've considered The only alternative now is to use Command or Chat Settings. However, Command cannot be stacked (i.e., you cannot call more than 1 Command) and Chat Settings are hidden underneath a Dialog Box and requires an additional click to toggle and most likely permanently toggled in every chat until the setting is reverted (unlike a Toggle-able button). The Toggle-able button should best be reset when moving to a new conversation, or stored per thread.
Additional context
+1
+1 very interested to see this feature!
+1
Add Toggle-able Buttons on Chat and Enhance information panel persistence and state management #2088
Need this
+1
This would be highly useful.
This is available already
https://docs.chainlit.io/concepts/command
Set button=True
This is available already
https://docs.chainlit.io/concepts/command
Set button=True
The only alternative now is to use Command ... However, Command cannot be stacked (i.e., you cannot call more than 1 Command) ... The Toggle-able button should best be reset when moving to a new conversation, or stored per thread.