-
Couldn't load subscription status.
- Fork 5.5k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
https://platform.openai.com/docs/guides/structured-outputs/introduction
OpenAI has released support for structured outputs, which ensures that models generate responses that conform to a supplied JSON schema.
We should update the Chat action to be able to support this new feature:
https://platform.openai.com/docs/api-reference/chat/create
- Chat
- Add new
json_schemaoption forresponse_format - Update Response Format description:
Specify the format that the model must output.
* Text (default): Returns unstructured text output.
* JSON Object: Ensures the model's output is a valid JSON object.
* JSON Schema (GPT-4o and later): Enables you to define a specific structure for the model's output using a JSON schema. Supported with models `gpt-4o-2024-08-06` and later, and`gpt-4o-mini-2024-07-18` and later.
- If
json_schemais selected, use additionalProps to unfurl thejson_schemaobject.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done