Native JSON Output from GPT-4
This was technically possible before. I think the approach used by many - myself included - is to simply embed results in a markdown code block and the match it with regex pattern. Then you just need to phrase the prompt to generate the desired output.<p>This is an example of that generating the arguments for the MongoDB's `db.runCommand()` function: <a href="https://aihelperbot.com/snippets/cliwx7sr80000jj0finjl46cp" rel="nofollow noreferrer">https://aihelperbot.com/snippets/cliwx7sr80000jj0finjl46cp</a>