I am using a Openai Assistant API and the response from the API is fed into a Openai TTS model. The issue is when the response from the Assistant has special characters the TTS model is throwing an error saying its not in JSON format.
Now I formatted the response as JSON safe but the issue still persists. I tried changing the prompt to give me a JSON safe response but then again the issue persists.
Any idea on how to solve this?
Can you share the screenshot of your setup? Of late, JSON-safe seems to be working for most of the use-cases, so maybe there might be a quick fix here. Also, did you take a look in the debugger/logs and see what’s the special character that’s raising this error?