struct OpenAI::FileRequest

Overview

Represents File upload request

Included Modules

Extended Modules

Defined in:

openai/api/file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(file : File | Path | String, purpose : String = "fine-tune") #

[View source]

Instance Method Detail

def build_metada(builder : HTTP::FormData::Builder) #

[View source]
def file : File | Path | String #

[View source]
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.


[View source]