OpenAI and Azure AI support the ability to provide a json_schema
as a response type configuration.
https://platform.openai.com/docs/guides/structured-outputs
I see three options to make this happen:
- Update existing Chat Model nodes
- Provide the ability to select
"json_schema"
as the response format in both the Azure OpenAI Chat Model and the OpenAI Chat Model. - When the response type is set to
"json_schema"
, enable a text field to define the schema.
- Allow full request configuration in Chat Models
- In addition to predefined dropdown options for configuration values, provide the ability to specify a fully custom JSON configuration, including all necessary parameters.
- Provide documentation on creating a custom Chat Model node
- Offer clear guidance on how to implement a custom Chat Model node to support specific requirements.
n8n version: 1.81.4
Database (default: SQLite): SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main): Default
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker and n8n
Operating system: Mac