Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Loads and formats input files for the OpenAI API. This node prepares text (.txt) and PDF (.pdf) files to include as context inputs for the OpenAI Chat Node. The files will be read by the OpenAI model when generating a response. Multiple OpenAI Input Files nodes can be chained together to include several files in a single message.

Inputs

ParameterData TypeRequiredRangeDescription
fileCOMBOYesMultiple options available (all .txt and .pdf files in the input directory under 32MB)Input files to include as context for the model. Only accepts text (.txt) and PDF (.pdf) files for now. Files must be smaller than 32MB.
OPENAI_INPUT_FILESOPENAI_INPUT_FILESNoN/AAn optional additional file(s) to batch together with the file loaded from this node. Allows chaining of input files so that a single message can include multiple input files.
File Constraints:
  • Only .txt and .pdf files are supported
  • Maximum file size: 32MB
  • Files are loaded from the ComfyUI input directory

Outputs

Output NameData TypeDescription
OPENAI_INPUT_FILESOPENAI_INPUT_FILESFormatted input files ready to be used as context for OpenAI API calls.

Source fingerprint (SHA-256): 9e1a60feb48d39646c4247dd12b15c3eb392e1b85b3db2f254571d568d772de0