struct OpenAI::FileRequest
- OpenAI::FileRequest
- Struct
- Value
- Object
Overview
Represents File upload request
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/file.crConstructors
Instance Method Summary
- #build_metada(builder : HTTP::FormData::Builder)
- #file : File | Path | String
-
#purpose : String
The intended purpose of the uploaded documents.
Constructor Detail
Instance Method Detail
def purpose : String
#
The intended purpose of the uploaded documents. Use "fine-tune" for fine-tuning. This allows us to validate the format of the uploaded file.