this code resolves to a 400 status error always, can someone help me to point out why?
const dataFromChat = await openai
.createChatCompletion({
messages: [
{
role: "user",
content: `return this json {h: 'hello'}`,
},
],
model: "gpt-3.5-turbo-0613",
functions: [
{
name: "getdata",
description: "gets the returned data",
parameters: {
returnedData: {
type: "object",
description: "returned data object",
},
},
},
],
})