ChatGPT API Call

Resolved

Hello community Flutterflow! I came across an error now in my building process. I used this fastest way to implement AI chat into my app: https://marketplace.flutterflow.io/item/P8iqP4HCF1Ob8m4cKneh

I have changed the API Key into my own, but while testing the API call, it keeps generating error message as below:

"message": "We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)",

"type": "invalid_request_error",

"param": null,

"code": null

}

}


I check my custom function got JSON Decode too. Can anyone help me with this? Thank you!

2
2 replies