edubruell / tidyllm

An tidy interface to large language model APIs for R
https://edubruell.github.io/tidyllm/
Other
9 stars 1 forks source link

Enhance Image Handling in `llm_message()` Function #17

Open edubruell opened 1 day ago

edubruell commented 1 day ago

Description: Enhance the llm_message() function to support attaching multiple images per message and accept both local image files and remote URLs instead of just base64-encoded local images. This aligns the function with APIs like Mistral and OpenAI that allow multiple images and support both base64-encoded images and remote URLs. Additionally, implement a fallback mechanism for APIs that do not support remote URLs (e.g., local Ollama) by downloading images and converting them to base64 format.

Possible Actions: