Help with this value to have openai generate in a scenario

I have used an OpenAI module on make, yes I have posted there as well but I get this error " Validation failed for 1 parameter(s).

  • Invalid collection in parameter 'messages"
    For the module to work I have this input, why does it read this as invalid?

const response = await openai.chat.completions.create({
model: “gpt-3.5-turbo”,
messages: [
{
“role”: “user”,
“content”: [
{
“type”: “text”,
“text”: “Write a social media post about automation and being successful using it.”
}
]
}
]
});

1 Like

API key ?
messages= [{“role”: “system”,“content”: “you are a nnn and mmmm”}