OpenAI::FileRequest
Inherits JSON::Serializable / Struct / Value / Object
Represents File upload request
Constructors
new(pull : JSON::PullParser)
Sourcenew(file : File | Path | String, purpose : String = "fine-tune")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
build_metada(builder : HTTP::FormData::Builder)
Sourcefile
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
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.