> ## 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.

# OpenAIInputFiles - ComfyUI Built-in Node Documentation

> Complete documentation for the OpenAIInputFiles node in ComfyUI. Learn its inputs, outputs, parameters and usage.

加载并格式化 OpenAI API 的输入文件。此节点准备文本（.txt）和 PDF（.pdf）文件，作为 OpenAI 聊天节点的上下文输入。在生成响应时，OpenAI 模型将读取这些文件。多个 OpenAI 输入文件节点可以链接在一起，以便在单条消息中包含多个文件。

## 输入

| 参数           | 描述                                                     | 数据类型                 | 是否必填 | 范围                                      |
| ------------ | ------------------------------------------------------ | -------------------- | ---- | --------------------------------------- |
| `文件`         | 作为模型上下文的输入文件。目前仅接受文本（.txt）和 PDF（.pdf）文件。文件大小必须小于 32MB。 | COMBO                | 是    | 提供多个选项（输入目录中所有小于 32MB 的 .txt 和 .pdf 文件） |
| `OpenAI输入文件` | 可选的附加文件，与此节点加载的文件合并处理。允许链接输入文件，以便单条消息可以包含多个输入文件。       | OPENAI\_INPUT\_FILES | 否    | 不适用                                     |

**文件限制：**

* 仅支持 .txt 和 .pdf 文件
* 最大文件大小：32MB
* 文件从 ComfyUI 输入目录加载

## 输出

| 输出名称         | 描述                                | 数据类型                 |
| ------------ | --------------------------------- | -------------------- |
| `OpenAI输入文件` | 格式化后的输入文件，准备用作 OpenAI API 调用的上下文。 | OPENAI\_INPUT\_FILES |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/OpenAIInputFiles/zh.md)

***

**Source fingerprint (SHA-256):** `e5e92f6628072da9af787867e38c89dde3db853b7289ef6c607a066cd04c1cc9`
