by panarky · 3y ago · 0 comments
https://openai.com/blog/function-calling-and-other-api-updat...
Here's a project that promises to deliver valid JSON every time:
https://news.ycombinator.com/item?id=37125118
Or you could attempt to parse the results yourself, and if it fails, feed the error message back to the LLM and have it try again.
Thanks for the links, I missed OpenAi's function-calling announcement. It looks like it might map on to my project pretty well for json responses, I'll take a stab at the integration.