MapsAttachments
trait MapsAttachments
Traits
Methods
string
fallbackFilename(string|null $mimeType)
Derive a filename for a nameless document from its MIME type.
array
mapAttachments(Collection $attachments)
Map the given Hypervel attachments to Chat Completions content parts.
bool
bool
Details
in
ResolvesDocumentFilenames at line 12
protected string
fallbackFilename(string|null $mimeType)
Derive a filename for a nameless document from its MIME type.
at line 34
protected array
mapAttachments(Collection $attachments)
Map the given Hypervel attachments to Chat Completions content parts.
at line 136
protected bool
isImage(UploadedFile $attachment)
Determine if the given uploaded file is an image.
at line 153
protected bool
isAudio(UploadedFile $attachment)
Determine if the given uploaded file is an audio file.