simple-openai icon indicating copy to clipboard operation
simple-openai copied to clipboard

Add support for structured outputs

Open the-gigi opened this issue 6 months ago • 0 comments

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.

the-gigi avatar Aug 06 '24 19:08 the-gigi