I'm trying to make a discord bot where you can ask chat gpt a question. I'm using gpt-turbo-3.5 but for some reason the choices from the response just has [Object] in it and that's it.
This is my code:
const response = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{ role: "system", content: "hello" }],
})
console.log(response.data.choices[0].text);
}
runPrompt();```