AI Dev Kit
Search Results for

    Show / Hide 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/

    Inheritance
    object
    AIRequest
    FileUploadRequest
    Inherited Members
    AIRequest.Model
    AIRequest.N
    AIRequest.Metadata
    AIRequest.User
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class FileUploadRequest : AIRequest
    Remarks

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

    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

    In this article
    Back to top Generated by DocFX