Re:Native JSON Output from GPT-4
by darepublic on Wednesday June 14, 2023 @03:54PM
(#36331644)
I have been using gpt4 to translate natural language to JSON already. And on v4 ( not v3) it hasn't returned any malformed JSON iirc
[ Parent
| on HN ]
What if you ask it to include comments in the JSON explaining its choices
- if the only reason you're using v4 over v3.5 is to generate JSON, you can now use this API and downgrade for faster and cheaper API calls.
- malicious user input may break your json (by asking GPT to include comments around the JSON, as another user suggested); this may or may not be an issue (e. g. if one user can influence other users' experience)