Help. I am failing to initialize with this setup for connecting Chat GPT API with prompt in dynamic format:
{
“model”: “gpt-3.5-turbo”,
“messages”: [
“prompt”
]
}
I keep getting this message, please help.
Raw response for the API
Status code 400
{
“error”: {
“message”: “‘null’ is not of type ‘object’ - ‘messages.0’”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
}