Here is my code.
const openaiResponse = await openai.createCompletion(
{
model: 'gpt-3.5-turbo',
messages: [{ role: 'user', content: 'what is mass of mars?' }],
stream: true,
},
{
responseType: 'stream',
}
);