Array structure

{
“model”: “gpt-3.5-turbo”,
“messages”: [{“role”: “user”, “content”: “Say this is a test!”}],
“temperature”: 0.7
}

While setting up the role and user structure, it gives the error that the API must be array. What can I do to convert it to array?

image

You can use the current GPT-3.5 API which has not been updated with the latest data. You should upgrade and use ChatGPT, it will be much more impressive.

Don’t know if you still need the answer. But this is how I solved it for myself