ComfyUI > Nodes > ComfyUI > OpenAI ChatGPT Input Files

ComfyUI Node: OpenAI ChatGPT Input Files

Class Name

OpenAIInputFiles

Category
api node/text/OpenAI
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

OpenAI ChatGPT Input Files Description

Facilitates integration of external text/PDF files into OpenAI ChatGPT for enhanced response relevance/accuracy.

OpenAI ChatGPT Input Files:

The OpenAIInputFiles node is designed to facilitate the integration of external text and PDF files into the OpenAI ChatGPT environment. This node allows you to load and prepare various input files, such as text documents and PDFs, to be used as context when generating responses with the OpenAI model. By incorporating these files, you can provide the model with additional information that can enhance the relevance and accuracy of its responses. The node is particularly useful for scenarios where you need to include detailed documents or specific textual data as part of the conversation context. Additionally, the node supports chaining, enabling you to combine multiple input files seamlessly, thus allowing a single message to include a comprehensive set of documents.

OpenAI ChatGPT Input Files Input Parameters:

file

The file parameter allows you to select an input file to include as context for the OpenAI model. It accepts text files with the .txt extension and PDF files with the .pdf extension. This parameter is crucial as it determines the primary document that will be read by the model to generate responses. The available options for this parameter are dynamically populated based on the files present in the designated input directory, and the default selection is the first file in the list if available. The size of the files should not exceed 32 MB.

OPENAI_INPUT_FILES

The OPENAI_INPUT_FILES parameter is an optional field that lets you batch additional files together with the primary file selected through the file parameter. This feature is particularly useful for chaining multiple input files, allowing you to provide a richer context by including several documents in a single message. This parameter accepts a list of input file contents, enabling you to extend the context beyond a single file.

OpenAI ChatGPT Input Files Output Parameters:

OPENAI_INPUT_FILES

The OPENAI_INPUT_FILES output parameter provides a list of formatted input file contents that have been prepared for use with the OpenAI API. This output is essential as it represents the collection of files that will be used as context for generating responses. The output ensures that all selected and batched files are correctly formatted and ready for integration with the OpenAI model, thereby facilitating a seamless flow of information into the AI's processing pipeline.

OpenAI ChatGPT Input Files Usage Tips:

  • Ensure that your input files are well-organized and named appropriately in the input directory to make selection easier and more intuitive.
  • Utilize the chaining feature by adding multiple files through the OPENAI_INPUT_FILES parameter to provide a comprehensive context for the AI model, which can improve the quality of the generated responses.

OpenAI ChatGPT Input Files Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified file cannot be found in the input directory.
  • Solution: Verify that the file exists in the designated input directory and that the file name is correctly specified.

UnsupportedFileTypeError

  • Explanation: This error is raised when a file with an unsupported extension is selected.
  • Solution: Ensure that only .txt or .pdf files are used as input, as these are the supported file types for this node.

FileSizeLimitExceeded

  • Explanation: This error indicates that the selected file exceeds the maximum allowed size of 32 MB.
  • Solution: Reduce the file size by splitting it into smaller parts or selecting a different file that meets the size requirements.

OpenAI ChatGPT Input Files Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

OpenAI ChatGPT Input Files