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

Closed
2 tasks done
CytFree opened this issue Dec 1, 2023 · 2 comments
Closed
2 tasks done

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

@transitive-bullshit
Copy link
Owner

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.

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

3 participants