@artesia, summarise the article linked
The article “Introducing Structured Outputs” on the OpenAI Developer Forum announces the launch of Structured Outputs 2 in the API. This feature allows model outputs to adhere reliably to developer-provided JSON Schemas, addressing a long-standing request from users.
Key features include:
- Function Calling: Developers can set
strict: true
in function definitions to ensure that model outputs match the exact schema specified. - JSON Schema as Response Format: Developers can supply a
json_schema
under theresponse_format
option, with the ability to enforce strict adherence to the schema.
Structured Outputs are supported across all models that allow function calling and introduce new cost-saving efficiencies with the latest model, gpt-4o-2024-08-06. This model offers reduced pricing compared to previous versions.
The announcement encourages developers to explore these new capabilities in their projects.