News for hackers. Stuff that matters.
Re:Show HN: LLMs can generate valid JSON 100% of the time by dontreact on Monday August 14, 2023 @07:44PM (#37128278)
That won't do it, also need to close other stuf

{"this": "is valid json so farrrrrrrrrrrrrr

But yeah the general idea makes sense. Once you hit a timeout, change the mask to things that will close existing open things in a valid manner (}, ), ], ")

There are no comments on this comment yet.