chainlit
chainlit copied to clipboard
Commands - Requesting to add an option like "selected" : True which can be set dynamically based on cached value
trafficstars
Is your feature request related to a problem? Please describe.
Need an option like "selected" : True which can set dynamically based on cached value
Currently, command persistence get reset to none if a page is refreshed which means the selected command gets unselected on page refresh.
The "selected" : True will help to persists the commands based on cache value from any database.
Describe the solution you'd like
commands = [ {"id": "Search", "icon": "globe", "description": "Web search", "button": True, "persistent" : True, "selected" : True} ]