class

OpenAI::InputFileContent

Inherits JSON::Serializable < Reference < Object

A file input to the model.

Constructors

new(type_value : InputFileContentType = InputFileContentType::InputFile, file_id : InputFileContentFileId | Nil = nil, filename : String | Nil = nil, file_url : String | Nil = nil, file_data : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

file_data

The content of the file to be sent to the model.

Source
file_data=(file_data : String | Nil)

The content of the file to be sent to the model.

Source
file_id
Source
file_id=(file_id : InputFileContentFileId | Nil)
Source
file_url

The URL of the file to be sent to the model.

Source
file_url=(file_url : String | Nil)

The URL of the file to be sent to the model.

Source
filename

The name of the file to be sent to the model.

Source
filename=(filename : String | Nil)

The name of the file to be sent to the model.

Source
type_value

The type of the input item. Always input_file.

Source
type_value=(type_value : InputFileContentType)

The type of the input item. Always input_file.

Source