powered by
This function reads an image file from disk, encodes it in base64, and returns a tidyllm_image object that can be used in multimodal embedding requests.
tidyllm_image
img(.path)
An tidyllm_image, containing:
imagepath: The original file path
imagepath
imagename: The basename of the image
imagename
imagebase64: a "data:image/...;base64,..." string
imagebase64
The path to the image file on disk.