Table of Contents

Class FileUploadRequest

Upload a file that can be used across various endpoints. The size of all the files uploaded by one organization can be up to 100 GB. The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See the Assistants Tools guide to learn more about the types of files supported. The Fine-tuning API only supports .jsonl files.

Please contact us if you need to increase these storage limits. https://help.openai.com/en/

public class FileUploadRequest : ModelRequest
Inheritance
object
RequestBody
FileUploadRequest
Inherited Members

Remarks

Properties

File

[Required] The File object (not file name) to be uploaded.

public FormFile File { get; set; }

Property Value

FormFile

Purpose

[Required] The intended purpose of the uploaded file. Use "fine-tune" for Fine-tuning and "Assistants" for Assistants and Messages. This allows us to validate the format of the uploaded file is correct for fine-tuning.

public string Purpose { get; set; }

Property Value

string

Remarks

This has to be string because the request has to be converted to Form Request. IO.RESTApi.RequestExtensions