class

OpenAI::Attachment

Inherits JSON::Serializable < Reference < Object

Attachment metadata included on thread items.

Constructors

new(type_value : AttachmentType = AttachmentType::Image, id : String = "", name : String = "", mime_type : String = "", preview_url : AttachmentPreviewUrl = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

id

Identifier for the attachment.

Source
id=(id : String)

Identifier for the attachment.

Source
mime_type

MIME type of the attachment.

Source
mime_type=(mime_type : String)

MIME type of the attachment.

Source
name

Original display name for the attachment.

Source
name=(name : String)

Original display name for the attachment.

Source
preview_url
Source
preview_url=(preview_url : AttachmentPreviewUrl)
Source
type_value

Attachment discriminator.

Source
type_value=(type_value : AttachmentType)

Attachment discriminator.

Source