AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class OpenAIUploadRequest

    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
    RESTRequestBody
    RESTUploadRequest
    OpenAIUploadRequest
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public class OpenAIUploadRequest : RESTUploadRequest
    Remarks

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

    Properties

    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 OpenAITypes.UploadPurpose Purpose { get; set; }
    Property Value
    Type Description
    OpenAITypes.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