problem with custom code and API

Database & APIs

I'm having a problem with the GPT API. When I write a text that contains quotation marks, like "hello" it generates the error: {

"error": {

"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

}

}

What have you tried so far?

I built a custom function to try to get around this. I found someone saying that when there were quotation marks, they put slashes between them to make it work: Something like

"maximo" --> /"maximo/" and it worked for him, but not for me. I wrote my function with the input text, and placed the user input within that input text.

Did you check FlutterFlow's Documentation for this topic?
No