Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.1k stars 777 forks source link

Add cl.replace_message() #10

Closed mcai closed 1 year ago

mcai commented 1 year ago

Oftentimes, we need to update the response to user's query, such as showing the progress (steps) of the generation before the final result comes, so it will be convenient if we can call cl.replace_message() to replace the message(s) that've been sent in the current response.

willydouhard commented 1 year ago

I agree, I will include this in the next release!

willydouhard commented 1 year ago

added in the 0.2.107 release! see https://docs.chainlit.io/api-reference/message

mcai commented 1 year ago

Awesome.