llm-workflow-engine icon indicating copy to clipboard operation
llm-workflow-engine copied to clipboard

Freezes at end of responses

Open jaybird110127 opened this issue 2 years ago • 1 comments

Sometimes the Chatgpt program seemingly never gets the memo that ChatGPT has completed its response. If streaming is enabled, this results in the entire response being sent to the screen, but then no prompt for another input. If streaming is disabled, since the program never finds out the response is complete, it never prints it to the screen. In either case, if logging is enabled, the response never gets logged. The only thing you can do is to hit Ctrl+C to terminate the program. There should probably be a timeout similar to the "no response at all" timeout, triggered after a certain time with no data from ChatGPT after starting to receive a valid response. When this timeout triggers, the program should assume it's received all it's going to receive, and handle the situation as if it had received a complete response E.G. log it, render it if streaming is disabled, provide the next input prompt, etc.

jaybird110127 avatar Jan 27 '23 09:01 jaybird110127

This is a sporadic problem that we can't really do much about. I added a timeout in my branch that raises a new exception when this happens. It's best to start over with a new session when this starts to happen IME.

brandonrobertz avatar Jan 31 '23 21:01 brandonrobertz

Closing due to inactivity, and I haven't seen this issue recently.

thehunmonkgroup avatar Apr 01 '23 20:04 thehunmonkgroup