mirror of
https://github.com/openai/openai-python.git
synced 2026-04-05 14:49:55 +00:00
This commit adds support for JSON schema response format & adds a separate `.beta.chat.completions.parse()` method to automatically deserialise the response content into a Pydantic model. For more details on structured outputs, see this guide https://platform.openai.com/docs/guides/structured-outputs