chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Group chat settings into Tabs

Open Allaoua9 opened this issue 1 week ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. The chat settings form can become cluttered when having multiple inputs. It would be nice to have the ability to group settings into tabs : https://ui.shadcn.com/docs/components/tabs

Describe the solution you'd like We could have a new Tab class that groups settings inputs :

tabs = [
    Tab(
        id="model"
        label="Model settings",
        inputs=[
            Select(id="model", label="LLM model name", values=["gpt-5", "gpt-5-mini", "gpt-5-nano"]),
            Select(id="reasoning_effort", label="Reasoning effort", items={
                "High": "high",
                "Medium": "medium",
                "Low": "low",
                "Minimum": "minimal",
            }),
            Select(id="verbosity", label="Verbosity", items={
                "High": "high",
        ],
    ),
   Tab(
        id="user"
        label="User preferences",
        inputs=[
            ...
        ],
    ),
]

cl.ChatSettings(tabs)

Allaoua9 avatar Nov 14 '25 08:11 Allaoua9