Right now we define an onProgress handler for all OpenAI requests. transitive-bullshit/chatgpt-api sees this handler and then configures fetch to receive the response in streamed chunks.
Introduce a configuration option to allow for a buffered response instead.
Right now we define an
onProgress
handler for all OpenAI requests.transitive-bullshit/chatgpt-api
sees this handler and then configures fetch to receive the response in streamed chunks.Introduce a configuration option to allow for a buffered response instead.
Relevant:
https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/chatgpt-api.ts#L207