Mervin
Mervin
You can use axios stream response type. But you still need to parse the returned data. ``` js const res = await openai.createCompletion({ model: "text-davinci-002", prompt: "Say this is a...
> Thanks! @smervs currently getting: Property 'on' does not exist on type 'AxiosResponse' when trying though - have you had any luck? can you try this? ``` js res.data.on('data', console.log)...
> @smervs your code is working for me, but it logs as > > ``` > > ``` > > Do you know how to parse this response? here ```js...