const one_shot_text = 'Bot: Ask me any question. '+
'Me: Can I ask you something about programming?. '+
'Bot: Yes, of course. Tell me your question and I will answer it. '+
'Me: My question about Javascript is: Write a JavaScript function to apply Bubble Sort algorithm.'+ 
'Bot:';
async function main() {
    const completion = await openai.createCompletion({
        model: "text-davinci-003",
        prompt: one_shot_text,
        temperature: 0,
        max_tokens: 250,
        top_p: 1.0,
        frequency_penalty: 0.5,
        presence_penalty: 0.0,
        stop: ["Bot:", 'Me:'],
    });
    console.log(completion.data.choices[0].text)
}