Closed 52phm closed 3 weeks ago
Any question that takes a little longer to generate an answer will not display properly on the chat page, so has this problem not been discovered? Or I wrote something wrong, please help solve, thank you
I'm not sure if I understand your problem correctly, since your example isn't minimal nor executable. But I suspect the problem is requests.post
not being async, so the request blocks the UI while waiting for the result. See this FAQ for more information.
Description
code
Type "Who are you", press enter, and the user input question can be displayed above the chat box. But enter "How to learn python" press enter, The problem entered by the user is not displayed on the chat box, and it does not respond like it is stuck. The background runs normally and the large model has content output