Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder why they phased out Pydantic in structured output for the Responses API.


Hey there! This is Steve here from the OpenAI team–I worked on the Responses API. We have not removed this! It should still work just like before! Here's an example:

https://github.com/openai/openai-python/blob/main/examples/r...


Hi Steve,

I based my assumption on the examples in the documentation[^1]. It is great that we can still use that.

1. https://platform.openai.com/docs/guides/structured-outputs?a...


(Shameless plug) I worked on something for anyone else wanting to get structured outputs from LLMs in a model agnostic way (Including Open AI models): https://github.com/inferablehq/l1m




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: