dspy
dspy copied to clipboard
Request for OpenAI Structured Output Support
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.