chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Toggle-able Buttons on Chat (i.e. Web Search, Reason, Deep Research etc)

Open GhimBoon opened this issue 8 months ago • 6 comments
trafficstars

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

Image

GhimBoon avatar Feb 28 '25 04:02 GhimBoon

+1

lengyueyang avatar Feb 28 '25 05:02 lengyueyang

+1 very interested to see this feature!

sammydeprez avatar Mar 20 '25 21:03 sammydeprez

+1

Lockegogo avatar Mar 24 '25 09:03 Lockegogo

Add Toggle-able Buttons on Chat and Enhance information panel persistence and state management #2088

lengyueyang avatar Apr 03 '25 05:04 lengyueyang

Need this

shiv-codegit avatar Apr 12 '25 19:04 shiv-codegit

+1

Koxx3 avatar Apr 14 '25 07:04 Koxx3

This would be highly useful.

phrz avatar May 12 '25 22:05 phrz

This is available already

https://docs.chainlit.io/concepts/command

Set button=True

sammydeprez avatar May 13 '25 05:05 sammydeprez

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.

GhimBoon avatar May 13 '25 05:05 GhimBoon