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/
Namespace: Glitch9.AIDevKit.OpenAI
Assembly: .dll
Syntax
public class FileUploadRequest : AIRequest
Remarks
Properties
File
[Required] The File object (not file name) to be uploaded.
Declaration
public IFile File { get; set; }
Property Value
Type | Description |
---|---|
IFile |
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.
Declaration
public UploadPurpose Purpose { get; set; }
Property Value
Type | Description |
---|---|
UploadPurpose |
Remarks
This has to be string because the request has to be converted to Form Request. IO.RESTApi.RequestExtensions