ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Questions about OnResponse

Open PaParaZz1 opened this issue 2 years ago • 1 comments

I have known that I can do some operations with OnResponse callback. However, if my response is quite long, I also need to do some other operations in the procedure of the stream-type output. Is there any methods to implement this demand? Thanks

PaParaZz1 avatar Dec 14 '23 11:12 PaParaZz1

Pretty sure you can do this client side while streaming is happening. In Chatlist check if the message is the last message, and isLoading is true, and in that case modify the streamed output.

mrmps avatar Feb 15 '24 22:02 mrmps