OpenAI released a new feature for its chat completion models where it can be strict about returning exactly the JSON schema that you want
https://openai.com/index/introducing-structured-outputs-in-the-api/
I’ve share some ideas on how to use the HTTP module to access this new response_format
mode, until the OpenAI module is upgraded.
Here’s the blueprint for the Maths Tutor example which is featured in the blog post and the video
drnicwilliams blueprint - OpenAI Structured Data - Maths Tutor.json (16.8 KB)