Search Results for

    Show / Hide Table of Contents

    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
    object
    FileUploadRequest
    AIFileUploadRequest
    Implements
    IMultipartFormRequest
    Inherited Members
    FileUploadRequest.File
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class AIFileUploadRequest : FileUploadRequest, IMultipartFormRequest
    Remarks

    POST https://api.openai.com/v1/files

    Constructors

    | Edit this page View Source

    AIFileUploadRequest(IFile, UploadPurpose?)

    Declaration
    public AIFileUploadRequest(IFile file, UploadPurpose? purpose = null)
    Parameters
    Type Name Description
    IFile file
    UploadPurpose? purpose

    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
    Type Description
    UploadPurpose?

    Methods

    | Edit this page View Source

    FromUploadFileRequest(UploadFileRequest)

    Declaration
    public static AIFileUploadRequest FromUploadFileRequest(UploadFileRequest req)
    Parameters
    Type Name Description
    UploadFileRequest req
    Returns
    Type Description
    AIFileUploadRequest

    Implements

    IMultipartFormRequest

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation