trait MapsAttachments

Methods

array
mapAttachments(Collection $attachments)

Map the given Hypervel attachments to Ollama base64 image strings.

bool
isImage(UploadedFile $attachment)

Determine if the given uploaded file is an image.

Details

at line 22
protected array mapAttachments(Collection $attachments)

Map the given Hypervel attachments to Ollama base64 image strings.

Parameters

Collection $attachments

Return Value

array

at line 47
protected bool isImage(UploadedFile $attachment)

Determine if the given uploaded file is an image.

Parameters

UploadedFile $attachment

Return Value

bool