Allow more file types besides image file types in AI chat
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3529601. -->
Reported by: [bircher](https://www.drupal.org/user/1344166)
Related to !668
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Openai and Gemini (and probably soon others) accept pdf files as well in chat.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Attach a pdf file to a chat</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a new $files property that supersedes images and let the providers determine whether they support it and how based on the mime type.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>agree<br>
PR<br>
party</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>none</p>
<h3 id="summary-api-changes">API changes</h3>
<p>New files that allow more than just images in chat.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>$images are replaced by $files.</p>
issue