chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Feedback button on non-plain message

Open ereb2impact opened this issue 5 months ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe. It is a feature request to have feedback button enabled for responses that are not plain messages. We are using custom data layer (Azure blob storage):

@cl.data_layer
def get_data_layer():
    return AzureBlobDataLayer(
        connection_string=os.getenv("AZURE_STORAGE_CONNECTION_STRING"),
        container_name="chainlit-data"
    )

Describe the solution you'd like

How we generate elements:

sums_elements = [
    cl.Dataframe(data=sums, display="inline", name="Transactions Sums"),
]
payment_details = cl.Message(content="Transaction sums", elements=sums_elements)
await payment_details.send()

Would like to have feedback for dataframe elements, currently it doesnt show buttons as seen below:

Image

Describe alternatives you've considered Used another plain message below the dataframe elements to capture feedback but that feedback is linked to the plain msg and not the dataframe element response.

Additional context

Image

Feedback buttons only show for plain message eleemnts.

ereb2impact avatar Jun 02 '25 09:06 ereb2impact