Skip to content

ByteContentFile

Structure Class

ByteContentFile dataclass

Bases: _SerdeShape

The property contains the file to chat with, along with its attributes.

Attributes

data instance-attribute
data: bytes

The raw bytes of the file to attach. The maximum size of all files that is attached is 10MB. You can attach a maximum of 5 files.

media_type instance-attribute
media_type: str

The MIME type of data contained in the file used for chat.