dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Request for OpenAI Structured Output Support

Open Gsizm opened this issue 6 months ago • 8 comments

Hello DSPy Team,

I want to request the addition of support for OpenAI's structured output in your library.

OpenAI recently introduced structured outputs in their API, which seems to guarantee the generation of 100% valid complex JSONs (https://openai.com/index/introducing-structured-outputs-in-the-api/). This feature will remove a metric ton of headache by solving many challenges related to JSON validation and parsing.

Could you please consider adding this support as soon as possible? This enhancement would be super beneficial for the whole DSPy community.

Gsizm avatar Aug 07 '24 04:08 Gsizm