Class AIFileUploadRequest
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/
Inheritance
AIFileUploadRequest
Assembly: Glitch9.AIDevKit.dll
Syntax
public class AIFileUploadRequest : FileUploadRequest, IMultipartFormRequest
Constructors
|
Edit this page
View Source
AIFileUploadRequest(IFile, UploadPurpose?)
Declaration
public AIFileUploadRequest(IFile file, UploadPurpose? purpose = null)
Parameters
Properties
|
Edit this page
View Source
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
[JsonProperty("purpose")]
public UploadPurpose? Purpose { get; set; }
Property Value
Methods
|
Edit this page
View Source
FromUploadFileRequest(UploadFileRequest)
Declaration
public static AIFileUploadRequest FromUploadFileRequest(UploadFileRequest req)
Parameters
Returns
Implements
Extension Methods