节点与集成

File operations

Use this operation to create, delete, list, message, or update a file in OpenAI. Refer to OpenAI for more information on the OpenAI node itself.

Delete a File

Use this operation to delete a file from the server.

Enter these parameters:

  • Credential to connect with: Create or select an existing OpenAI credential.
  • Resource: Select File.
  • Operation: Select Delete a File.
  • File: Enter the ID of the file to use for this operation or select the file name from the dropdown.

Refer to Delete file | OpenAI documentation for more information.

List Files

Use this operation to list files that belong to the user's organization.

Enter these parameters:

  • Credential to connect with: Create or select an existing OpenAI credential.
  • Resource: Select File.
  • Operation: Select List Files.

Options

  • Purpose: Use this to only return files with the given purpose. Use Assistants to return only files related to Assistants and Message operations. Use Fine-Tune for files related to Fine-tuning.

Refer to List files | OpenAI documentation for more information.

Upload a File

Use this operation to upload a file. This can be used across various operations.

Enter these parameters:

  • Credential to connect with: Create or select an existing OpenAI credential.
  • Resource: Select File.
  • Operation: Select Upload a File.
  • Input Data Field Name: Defaults to data. Enter the name of the binary property which contains the file. The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants.

Options

  • Purpose: Enter the intended purpose of the uploaded file. Use Assistants for files associated with Assistants and Message operations. Use Fine-Tune for Fine-tuning.

Refer to Upload file | OpenAI documentation for more information.

Common issues

For common errors or issues and suggested resolution steps, refer to Common Issues.

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明