struct

OpenAI::FileRequest

Inherits JSON::Serializable / Struct / Value / Object

Represents File upload request

Constructors

new(pull : JSON::PullParser)
Source
new(file : File | Path | String, purpose : String = "fine-tune")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

build_metada(builder : HTTP::FormData::Builder)
Source
file

Name of the JSON Lines files to be uploaded. If the purpose is set to "fine-tune", the file will be used for fine-tuning

Source
purpose

The intended purpose of the uploaded documents. Use "fine-tune" for fine-tuning. This allows us to validate the format of the uploaded file.

Source