9 ms·
I wonder why they phased out Pydantic in structured output for the Responses API.
by hodanli 2y ago
I wonder why they phased out Pydantic in structured output for the Responses API.
- sdcoffey 2y agoHey 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/responses/structured_outputs.py https://github.com/openai/openai-python/blob/main/examples/r...
- hodanli 2y agoHi 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?api-mode=responses https://platform.openai.com/docs/guides/structured-outputs?a...
- lunarcave 2y ago(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 https://github.com/inferablehq/l1m