Hacker News new | ask | show | jobs
by andai 1095 days ago
That's hilarious... if parsing GPT's JSON fails, keep asking GPT to fix it until it parses!
2 comments

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.