AiProviderInterface::getConfiguredModels code documentation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3552782. -->
Reported by: [stefan.korn](https://www.drupal.org/user/1942204)
Related to !959
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The in code documentation for getConfiguredModels method of AIProviderInterface seems to be not totally correct.</p>
<p>It reads</p>
<pre> /**<br> * Provides associative array with a list of models' IDs.<br> *<br> * Keyed with human-readable names and optionally filtered by typ.</pre><p>But as far as I can see the models array is not expected to be keyed by human-readable names, but rather by model id. Human-readable name is given in the value.</p>
<p>So proposing to change this doc comment.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>Please provide information like AI modules enabled, which AI provider, browser, etc.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
issue