Want to know more about completion api

I am not able to get a stream of data from completions api. Can anyone please share the required api request body for the same. Currently, I am using the following

const completion = await openai.createCompletion({
      "model": "text-davinci-003", "prompt": "Email template generation", "max_tokens": 150, "temperature": 0.6,"stream": true
1 Like

Hi @gunika.gupta

Welcome to the community.

This is an ongoing issue with the NodeJS library.

Fortunately there’s a workaround:


Unfortunately all of these workwrounds do not work :frowning: