jddev273 / streamed-chatgpt-api

A node module for streaming API responses from the ChatGPT APi.
MIT License
30 stars 6 forks source link

response.body.getReader is not a function when using node-fetch #6

Open stouch opened 1 year ago

stouch commented 1 year ago

Describe the bug When fetch uses node-fetch, and because of https://stackoverflow.com/a/57664622/21644773, the getReader function does not exist in response.body.

To Reproduce Steps to reproduce the behavior:

  1. Force use node-fetch in const fetch = ... at line 1.