Nah, this was solved by most teams a while ago.
Did they not even try asking gpt to format the output as json?
You are taking crazey pills. Stop
gpt-? is unreliable! That is not a bug in it, it is the nature of the beast.
It is not an expert at anything except natural language, and even then it is an idiot savant