Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder what the standard approach is when the LLM does not return valid JSON data? Do you skip the input data all together, or use the parsing error to generate a valid JSON?


The general rule is: be minimally liberal in what I receive :)

A parse error kicks off a recovery process where, in theory, we could run any number of rules. In practice the only problems are unescaped quotes in strings, or mismatched quotes (start with `"` and terminate with `'`)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: