Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After call AbortController. abort(), it did not stop immediately and only returned after timeout #631

Open
2 tasks done
CytFree opened this issue Dec 1, 2023 · 1 comment

Comments

@CytFree
Copy link

CytFree commented Dec 1, 2023

Verify latest release

  • I verified that the issue exists in the latest chatgpt release

Verify webapp is working

  • I verify that the ChatGPT webapp is working properly for this account.

Environment details

node v16.20.2
os macOS 12.7.1

Describe the Bug

When using ChatGPTAPI, when I set the custom abortSignal and timeout, and the stream is true, and call abort(), the response will stop outputting, but the timeout is not canceled and will wait until the timeout is reached

image

@pai4451
Copy link

pai4451 commented Dec 7, 2023

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants