Add custom timeouts per provider setting
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3574472. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1228
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<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>Currently we have and issue for adding a settable timeout in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3547635" title="Status: Closed (fixed)">#3547635: Translating large jobs via the ai provider often fails: allow configurable HTTP client timeout</a></span> and we have a form element where you can setup the provider, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3556181" title="Status: Closed (fixed)">#3556181: Create a form element for selecting providers</a></span>. We also have a linkable schema for saving this <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3552774" title="Status: Closed (fixed)">#3552774: Create linkable schema for providers</a></span></p>
<p>For 2.0.0 we should also make it possible to set the timeout per provider setup, so you can have really short timeout if an AI is only supposed to give back a true/false for the end customer or a really long timeout for an agent that runs a long running job for the admin.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add an advanced detail or fieldset that is collapsed by default - or maybe in the advanced config? (Added needs UX)<br>
Add so you can set a custom timeout here in seconds.<br>
Add to the linkable schema that you can set a value. It can be 0 or null and then the global default should be used.</p>
<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>
<h3 id="summary-ai-usage">AI usage (if applicable)</h3>
<p>[ ] AI Assisted Issue<br>
This issue was generated with AI assistance, but was reviewed and refined by the creator.</p>
<p>[ ] AI Assisted Code<br>
This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p>
<p>[ ] AI Generated Code<br>
This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p>
<p>[ ] Vibe Coded<br>
This code was generated by an AI and has only been functionally tested.</p>
issue