SpellcraftAI/openai-streams

Is it possible cancel a stream

Akifcan opened this issue · 3 comments

Hello I created stream with openai-streams package but streams still up even I close the page. so can stop the streaming before I close a webpage

Yes, you can pass an AbortController into the fetch params and cancel with controller.abort().

Hello I tried abortController. fetch is cancelling but I still see the logs

Please provide a reproduction and I'll reopen.