Open savokiss opened 1 year ago
Is this due to network issues (the API is not responding)? Does switching to the previous version resolve the problem?
Yep, I revert the branch and it's OK now. Note that I use the unofficial mode. While the ChatGPT website is ok, only the telegram respond seems stucked.
It's weird... Mine seems to be working fine. Can you provide more details on how to reproduce this problem?
Maybe because I've add a fetch polyfill? I am using Node 16 and had to polyfill that. I'll check it later and provide some more detail. Thanks for your attention~ 😄
does the queue is reset when /reset or /reload are triggered? i got it stuck and after reloading the session it still adding to queue
does the queue is reset when /reset or /reload are triggered?
No, /reset
and /reload
will not reset the queue. The requests in the queue won't be affected. /reset
only starts a new conversation for the upcoming messages, and /reload
should only be used for the browser API.
i got it stuck and after reloading the session it still adding to queue
What's the version of node you're using? In what circumstances will it get stuck?
idk how it happens, maybe it dont perceive a timeout from the api and it just stop receiving the prompt output and the queue gets the bug
Sometimes the API does not respond. Will add a timeout mechanism to fix this.
Sometimes the API does not respond. Will add a timeout mechanism to fix this.
Yep, May be the network issue. May not be the Node.js version problem.
For everyone who is facing issues with order being hanged right now
However, we are not currently satisfied with timeout mechanism on chatgpt-api side since it doesnt count onProgress trigger as request succeed, instead, it just waits for stream to close.
I'm currently working on PR for chatgpt-api to add this mechanism and after that fix will be added there. With other nasty feature :D
So, please, use timeoutMs for api as temporary solution, there will be fix soon.
I've added a simple timeout mechanism in #36 as an initial fix. Still waiting for https://github.com/transitive-bullshit/chatgpt-api/pull/444 to be merged.
The queue may be stucked, and can't be released.
It always reply
You are #{n} in line.