chainlit
chainlit copied to clipboard
Feedback button on non-plain message
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:
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
Feedback buttons only show for plain message eleemnts.