Support media entities for vision models
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3534289. -->
Reported by: [anaconda777](https://www.drupal.org/user/3595801)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Hi,</p>
<p>Currently the ECA Chat task has a text area for prompt. (I am currently using it for categorizing user generated<br>
text and it works great)<br>
For vision models, there is a need to send media items (like jpg, png etc. files) to the model for categorizing them.<br>
So if a content contains a Media field, the file of it should be send to a Model with a prompt.<br>
(This by the way works already in Chat Generation Explorer where you can type a prompt and under that is a file upload. )</p>
<p>So a file as a token maybe could be sent to the model? Or if there is any other way of doing it, like with AI automator then that could be fine.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue