Filter the loaded models list
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3508886. -->
Reported by: [jibla](https://www.drupal.org/user/1013184)
Related to !33
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>At the moment, we load the list of models directly with the Gemini API. We do a check for embedings but other than that we just load the models directly.</p>
<p>We need to further filter (even hardcoding manually if needed) and load only those models which are at the moment supported by the module.</p>
<p>There are even some models which are returned twice by the API and it does not make any sense to directly pass.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Check the models list in API Explorer.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Test every model in API explorer and make sure all works and there are no duplication.</p>
issue