Add provider info cell, capabilities display, and YAML-based provider registry
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3568028. -->
Reported by: [erichomanchuk](https://www.drupal.org/user/299489)
Related to !1125
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>Ready for review - Adds info column with provider/model documentation links<br>
<strong>Short Title: </strong>Provider Info & Capabilities Registry<br>
<strong>Short Description: </strong>Add provider info/capabilities to settings table via YAML-based registry maintained in AI module<br>
<strong>Check-in Date: </strong>01/21/2026<br>
<strong>Due Date:</strong> 01/21/2026<br>
<strong>Blocked by:</strong> <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3568026" title="Status: Closed (fixed)">#3568026: Convert AI provider settings form to table layout</a></span><br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Users need better visibility into AI provider information and capabilities when configuring the AI module. Currently there is no easy way to see provider details, supported capabilities, or pricing information within the settings UI.</p>
<p>This issue is part of the provider metadata improvements discussed in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3560206" title="Status: Closed (fixed)">#3560206: [meta] Reorganize AI Settings into Capability-Based Table Layout</a></span> and depends on the table layout work in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3568026" title="Status: Closed (fixed)">#3568026: Convert AI provider settings form to table layout</a></span>.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p><strong>For 1.3 release:</strong></p>
<ul>
<li>Create a YAML file schema for provider metadata</li>
<li>Add provider info cell to the table UI</li>
<li>Display AI capabilities per provider</li>
<li>Include pricing/model details where available</li>
</ul>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>Define YAML file schema for provider metadata</li>
<li>Populate initial provider data for initiative-maintained providers</li>
<li>Implement info cell in table UI</li>
<li>Display capabilities per provider</li>
<li>Review and testing</li>
</ul>
<h3>User interface changes</h3>
<p>New info cell column in the provider settings table displaying provider details and capabilities.</p>
<h3>Data model changes</h3>
<p>New YAML file added to AI module containing provider metadata registry.</p>
<h3>Related issues</h3>
<ul>
<li>Parent/roadmap: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3560206" title="Status: Closed (fixed)">#3560206: [meta] Reorganize AI Settings into Capability-Based Table Layout</a></span></li>
<li>Depends on: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3568026" title="Status: Closed (fixed)">#3568026: Convert AI provider settings form to table layout</a></span></li>
</ul>
<h4 id="summary-steps-test">Steps to test</h4>
<p><strong>Prerequisites:</strong></p>
<ol>
<li>Install a fresh Drupal 11 site (I installed Drupal CMS and then removed the AI recipe and installed AI module 1.3.x via composer)</li>
<li>Install the AI module 1.3.x branch with the changes from. The issue that this module depends on has already been merged into the merge request</li>
<li>Install at least one AI provider that has metadata defined (e.g., providers maintained by the Drupal AI Initiative team)</li>
</ol>
<p><strong>Testing the merge request:</strong></p>
<ol>
<li>Apply the merge request to the AI module</li>
<li>Clear caches (<code>drush cr</code>)</li>
<li>Navigate to <code>/admin/config/ai/settings</code></li>
<li>For a capability row, select a Default Provider from the dropdown</li>
<li>Verify the Info cell updates to show a link to the provider's documentation/website</li>
<li>Select a specific Model for that provider</li>
<li>Verify the Info cell updates to include model-specific information (if available in metadata)</li>
<li>Test with a provider that does NOT have metadata defined - verify the form handles this gracefully (no errors, info cell may be empty or show appropriate fallback)</li>
<li>Save the form and verify settings persist correctly</li>
</ol>
<p><strong>Expected result:</strong></p>
<ul>
<li>When a Default Provider is selected, the Info cell displays relevant links for that provider</li>
<li>When a Model is selected, additional model-specific information appears if available in the provider's metadata file</li>
<li>Providers without metadata defined should not cause errors</li>
<li>Additional AI Capabilities data will provide suggestions/links to providers that can enable the AI capabilities</li>
</ul>
<h3 id="summary-before-after">Before/After screenshots</h3>
<p><strong>Before (Without the table layout changes in issue <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3568026" title="Status: Closed (fixed)">#3568026: Convert AI provider settings form to table layout</a></span> which are required for this issue</strong><br>
<img src="https://www.drupal.org/files/issues/2026-01-21/before_0.png" alt="Before ai form settings"></p>
<p><strong>Before (no provider selected):</strong><br>
<img src="https://www.drupal.org/files/issues/2026-01-21/no-provider.png" alt="No provider selected"></p>
<p><strong>After (provider selected):</strong><br>
<img src="https://www.drupal.org/files/issues/2026-01-21/no-provider.png" alt="Provider selected"></p>
<p><strong>After (model selected):</strong><br>
<img src="https://www.drupal.org/files/issues/2026-01-21/model-selected.png" alt="Model selected"></p>
<p><strong>After (Additional AI Capabilities Category added to show available providers)</strong><br>
<img src="https://www.drupal.org/files/issues/2026-01-21/additional-capabilities.png" alt="Additional Capabilities"></p>
> Related issue: [Issue #3568026](https://www.drupal.org/node/3568026)
> Related issue: [Issue #3560206](https://www.drupal.org/node/3560206)
issue