You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: .Net: OpenAI - Support response_format type of json_schema (Structured Outputs) #7946
The latest OpenAI models allow passing json_schema as the response_formattype property, and supplying the schema itself under the schema property. This enforces conformance to the schema by validating output tokens, rather than best LLM effort.
This is obviously massively useful to any application using json output, especially when deserialising the json to C# types.
Please consider adding support for these properties through the SemanticKernel abstractions and .Net client in the short term.
Reacted by Rodion Mostovoi, James Longstaffe, Mike, alienwareone, Koste Budinoski, LinkinWu, Glen, Mattias Ackermand, roldengarm, acharlesgithub and 10 more
changed the title [-].Net: Support response_format type of json_schema [/-][+].Net: OpenAI - Support response_format type of json_schema [/+]on Aug 7, 2024
changed the title [-].Net: OpenAI - Support response_format type of json_schema [/-][+]Java: .Net: OpenAI - Support response_format type of json_schema [/+]on Aug 13, 2024
changed the title [-].Net: OpenAI - Support response_format type of json_schema [/-][+]Python: .Net: OpenAI - Support response_format type of json_schema [/+]on Aug 13, 2024
changed the title [-]Python: .Net: OpenAI - Support response_format type of json_schema [/-][+]Python: .Net: OpenAI - Support response_format type of json_schema (Structured Outputs)[/+]on Sep 4, 2024
Activity
[-]Support response_format type of json_schema [/-][+].Net: Support response_format type of json_schema [/+]rogerbarreto commentedon Aug 7, 2024
Update with more context.
Created issue in OpenAI SDK .Net to keep track.
[-].Net: Support response_format type of json_schema [/-][+].Net: OpenAI - Support response_format type of json_schema [/+][-].Net: OpenAI - Support response_format type of json_schema [/-][+]Java: .Net: OpenAI - Support response_format type of json_schema [/+][-].Net: OpenAI - Support response_format type of json_schema [/-][+]Python: .Net: OpenAI - Support response_format type of json_schema [/+]papa-pep commentedon Aug 27, 2024
It looks like OpenAI SDK work has been completed! Looking forward to having this in SK soon!
[-]Python: .Net: OpenAI - Support response_format type of json_schema [/-][+]Python: .Net: OpenAI - Support response_format type of json_schema (Structured Outputs)[/+].Net: OpenAI Structured Outputs ADR and implementation for Option 1 a…
Python: Support OpenAI json_schema response format (#8958)
moonbox3 commentedon Oct 31, 2024
This is complete in Python as of #8958.
github-actions commentedon Apr 29, 2025
This issue is stale because it has been open for 90 days with no activity.