ChatGPT's June update added support for "function calling", which in practice is structured data I/O marketed very poorly:
https://openai.com/blog/function-calling-and-other-api-updat...Here's an example of using structured data for better output control, lightly leveraging my Python package to reduce LoC: https://github.com/minimaxir/simpleaichat/blob/main/examples...