problems with json and the open ai api

Custom Code

I'm trying to make requests with open AI and I noticed that when there are special characters, it ends up returning this 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 searched the forum and found people who had the same problem as me, I tried the solution provided, but I'm not sure if I did it correctly. I wrote custom code that takes text as input and returns formatted text as json. After that, in my API request, I inserted the function and within the function,

the input text to go in json format

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