Invalid JSON returned in function call--responds with unescaped "inches" symbol (")

Hi, I’m using the function-calling/tool-use parameters in the ChatCompletions API, and the response contains mostly valid JSON, except one of the strings contains an inches symbol (") that is unescaped, and causes the string to not parse properly.

Hi and welcome to the Developer Forum!

Thanks for the feedback, the JSON feature does have small hiccups like that from time to time, personally I have a json pre-processor that looks for things like that and corrects them as they seem to follow a predictable format, and it will get better with time, feedback and training.

1 Like