> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAIChatConfig - ComfyUI Built-in Node Documentation

> The OpenAIChatConfig node defines advanced options that control how the OpenAI Chat Node generates responses.

The OpenAIChatConfig node defines advanced options that control how the OpenAI Chat Node generates responses. It lets you set the truncation strategy, limit the number of output tokens, provide custom instructions, and choose how much reasoning effort the model should apply before answering.

## Inputs

| Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                               | Data Type | Required | Range                                                                                             |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------------------------------------------------------------- |
| `truncation`        | The truncation strategy to use for the model response. auto: If the context of this response and previous ones exceeds the model's context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation. disabled: If a model response will exceed the context window size for a model, the request will fail with a 400 error (default: "auto") | COMBO     | Yes      | "auto"<br />"disabled"                                                                            |
| `max_output_tokens` | An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens (default: 4096)                                                                                                                                                                                                                                                                        | INT       | No       | 16 to 16384                                                                                       |
| `instructions`      | Instructions for the model on how to generate the response (multiline input supported)                                                                                                                                                                                                                                                                                                                                    | STRING    | No       | -                                                                                                 |
| `reasoning_effort`  | How much the model reasons before answering. "default" leaves the choice to the model. Supported levels differ per model: GPT-6 Astra low-max, GPT-5.6 none-max (no minimal), GPT-5.5 none-xhigh, GPT-5.5 Pro medium-xhigh, GPT-5 minimal-high, o-series low-high; GPT-4.1 has no reasoning. Unsupported levels are rejected before the request is sent. (default: "default")                                             | COMBO     | No       | "default"<br />"none"<br />"minimal"<br />"low"<br />"medium"<br />"high"<br />"xhigh"<br />"max" |

Note: While `top_p` and `temperature` are listed as properties in the API specification, they are not supported for all models and are therefore not exposed as inputs.

## Outputs

| Output Name          | Description                                                                                     | Data Type            |
| -------------------- | ----------------------------------------------------------------------------------------------- | -------------------- |
| `OPENAI_CHAT_CONFIG` | Configuration object containing the specified advanced settings, for use with OpenAI Chat Nodes | OPENAI\_CHAT\_CONFIG |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OpenAIChatConfig/en.md)

***

**Source fingerprint (SHA-256):** `37d18a13b9d5bb36359603e5bab5918e7fea200ac552ea8439fff1488a88263c`
