Hello Gdevs,
I’m trying to connect to the GPTAPI, but I keep geeting a 400 error.
I’m 90% sure is the body in my request since I don’t know what’s the rigt way to do it. I’ve tried to type it in different ways like
“{”+ “model” +“:”+ “gpt-3.5-turbo” +“,”+
“messages” +“:” +“[”+ “{” + “role” + “:” +“user” +“,” +
“content” + “:” + “Say this is a test!” +“}” + “]” + “,” +
“temperature” + “:” + "0.7 + “}”
‘{
“model”: “gpt-3.5-turbo”,
“messages”: [{“role”: “user”, “content”: “Say this is a test!”}],
“temperature”: 0.7 }’
[‘{
“model”: “gpt-3.5-turbo”,
“messages”: [{“role”: “user”, “content”: “Say this is a test!”}],
“temperature”: 0.7 }’]
but none of them is working.
Here’s the block of gdevelop actions
Can someone please help me with the Json structure ?