Skip to content

ByteContentFileDict

Dictionary Type

ByteContentFileDict

Bases: TypedDict

Dictionary form of ByteContentFile.

Attributes

data instance-attribute
data: Required[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: Required[str]

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