3 ms·
That's hilarious... if parsing GPT's JSON fails, keep asking GPT to fix it until it parses!
That's hilarious... if parsing GPT's JSON fails, keep asking GPT to fix it until it parses!
It shouldn't be surprising though. If a human makes an error parsing JSON, what do you do? You make them look over it again. Unless their intelligence is the bottleneck they might just be able to fix it.
It works. Just be sure to build a good error message.