View Source ExOpenAI.Components.CreateFileRequest (ex_openai.ex v2.0.0-beta2)
Module for representing the OpenAI schema CreateFileRequest.
Fields
:expires_after- optional -ExOpenAI.Components.FileExpirationAfter.t():file- required -binary()
The File object (not file name) to be uploaded.
Format:binary:purpose- required -:assistants | :batch | :"fine-tune" | :vision | :user_data | :evals
The intended purpose of the uploaded file. One of:
assistants: Used in the Assistants APIbatch: Used in the Batch APIfine-tune: Used for fine-tuningvision: Images used for vision fine-tuninguser_data: Flexible file type for any purposeevals: Used for eval data sets
Allowed values:"assistants","batch","fine-tune","vision","user_data","evals"
Summary
Types
@type t() :: %ExOpenAI.Components.CreateFileRequest{ expires_after: ExOpenAI.Components.FileExpirationAfter.t() | nil, file: binary(), purpose: ((((:assistants | :batch) | :"fine-tune") | :vision) | :user_data) | :evals }