AIAttachment.imageBytes constructor
Creates an image attachment from bytes.
Implementation
factory AIAttachment.imageBytes(List<int> bytes, {String? mimeType}) {
return AIAttachment(
type: AIAttachmentType.image,
bytes: bytes,
mimeType: mimeType ?? 'image/png',
);
}