Description
Is your feature request related to a problem? Please describe.
While talking to our bot, the user is allowed to send an image. This image is sent to vision enabled LLM bot. Haystack ChatMessage class content
only allows string but it needs to allow a List to be passed. Here's the OpenAI page the Haystack refers to for content
which allows array and image_url
that can be sent that way.
Describe the solution you'd like
ChatMessage to be able to handle inbound image
Describe alternatives you've considered
Not using generator component at all is the only other alternative I can explore.
Additional context
Haystack's ChatMessage content
: Link
OpenAI's chat message parameter: Link
How ChatMessage content is getting populated from the generator: Link