Skip to content

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

Open
@GhimBoon

Description

@GhimBoon

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions