Skip to main content

OpenAI ChatGPT Advanced Options

api node/text/OpenAI
OpenAIChatConfig

Allows specifying advanced configuration options for the OpenAI Chat Nodes.

Example

JSON Example
{
  "class_type": "OpenAIChatConfig",
  "inputs": {
    "truncation": "auto"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
truncation?COMBOrequired-"auto"
max_output_tokens?INToptionalmin: 16, max: 163844096
instructions?STRINGoptional--

Outputs

IndexNameTypeIs ListConnection Reference
0OPENAI_CHAT_CONFIGOPENAI_CHAT_CONFIGNo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this OpenAIChatConfig node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • OPENAI_CHAT_CONFIG (OPENAI_CHAT_CONFIG): ["5", 0]
Was this page helpful?