trait MapsAttachments

Methods

array
mapAttachments(Collection $attachments)

Map the given Hypervel attachments to Chat Completions content parts.

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 Chat Completions content parts.

Parameters

Collection $attachments

Return Value

array

at line 62
protected bool isImage(UploadedFile $attachment)

Determine if the given uploaded file is an image.

Parameters

UploadedFile $attachment

Return Value

bool