class

OpenAI::ChatCompletionRequestMessageContentPartFileFile

Inherits JSON::Serializable < Reference < Object

Constructors

new(filename : String | Nil = nil, file_data : String | Nil = nil, file_id : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

file_data

The base64 encoded file data, used when passing the file to the model as a string.

Source
file_data=(file_data : String | Nil)

The base64 encoded file data, used when passing the file to the model as a string.

Source
file_id

The ID of an uploaded file to use as input.

Source
file_id=(file_id : String | Nil)

The ID of an uploaded file to use as input.

Source
filename

The name of the file, used when passing the file to the model as a string.

Source
filename=(filename : String | Nil)

The name of the file, used when passing the file to the model as a string.

Source