OpenAI File 操作#
¥OpenAI File operations
使用此操作在 OpenAI 中创建、删除、列出、发送消息或更新文件。有关 OpenAI 节点本身的更多信息,请参阅 OpenAI。
¥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:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“文件”。
¥Resource: Select File.
- 操作:选择删除文件。
¥Operation: Select Delete a File.
- 文件:输入用于此操作的文件的 ID,或从下拉列表中选择文件名。
¥File: Enter the ID of the file to use for this operation or select the file name from the dropdown.
有关更多信息,请参阅 删除文件 | OpenAI 文档。
¥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:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥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.
有关更多信息,请参阅 列出文件 | OpenAI 文档。
¥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:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“文件”。
¥Resource: Select File.
- 操作:选择“上传文件”。
¥Operation: Select Upload a File.
- 输入数据字段名称:默认为
data。输入包含该文件的二进制属性名称。单个文件的大小最大为 512 MB 或 200 万个令牌(针对 Assistant)。
¥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.
有关更多信息,请参阅 上传文件 | OpenAI 文档。
¥Refer to Upload file | OpenAI documentation for more information.
常见问题#
¥Common issues
有关常见错误或问题以及建议的解决方法,请参阅 常见问题。
¥For common errors or issues and suggested resolution steps, refer to Common Issues.