simple-openai
simple-openai copied to clipboard
Add support for structured outputs
OpenAI introduced structured outputs where the model's response adheres to a JSON schema.
See:
- https://openai.com/index/introducing-structured-outputs-in-the-api/
- https://platform.openai.com/docs/guides/structured-outputs
This is super useful for building reliable systems.