OpenAI via API Connector not working

Hello everyone,
I am trying to connect to OpenAIs ChatGPT via API Connector:

I am using this body:

{
“model”: “gpt-3.5-turbo”,
“messages”: [

]
}
It is also being used in this youtube video: Creating a Chatbot experience using Bubble & ChatGPT API | Bubble.io Tutorials | Planetnocode.com - YouTube

But I receive this error:

There was an issue setting up your call.
“Raw response for the API “Status code 400"”” “error”: “” “message”: “you must provide a model parameter”," “type”: “invalid_request_error”," “param”: null," “code”: null" “”""""

I am providing a model parameter, dont I? Do you know how to solve the error? Thank you very much in advance!

Did you set content-type header? application/json

That worked, thank you:)

1 Like