This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHubThis node generates text responses from an OpenAI model. It allows you to have conversations with the AI model by sending text prompts and receiving generated responses. The node supports multi-turn conversations where it can remember previous context, and it can also process images and files as additional context for the model.
Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
prompt | STRING | Yes | - | Text inputs to the model, used to generate a response (default: empty) |
persist_context | BOOLEAN | Yes | - | Persist chat context between calls for multi-turn conversation (default: True) |
model | COMBO | Yes | Multiple OpenAI models available | The OpenAI model to use for generating responses |
images | IMAGE | No | - | Optional image(s) to use as context for the model. To include multiple images, you can use the Batch Images node (default: None) |
files | OPENAI_INPUT_FILES | No | - | Optional file(s) to use as context for the model. Accepts inputs from the OpenAI Chat Input Files node (default: None) |
advanced_options | OPENAI_CHAT_CONFIG | No | - | Optional configuration for the model. Accepts inputs from the OpenAI Chat Advanced Options node (default: None) |
Outputs
| Output Name | Data Type | Description |
|---|---|---|
output_text | STRING | The text response generated by the OpenAI model |