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

add abort controller #10

Open
floomby opened this issue Jun 30, 2023 · 0 comments
Open

add abort controller #10

floomby opened this issue Jun 30, 2023 · 0 comments

Comments

@floomby
Copy link
Contributor

floomby commented Jun 30, 2023

There should be a way to abort fetch requests. The openai api fairly often does not respond, this leaves the request in limbo.

This is a bit tricky is because with the new way functions are handled passing an abort controlled in as part of the options to sendMessage will not work (no way to reuse abort controllers, and you would need one for each function return). Perhaps just a simple timeout that is cleared if the api responds would be all that is needed.

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

1 participant