AI Core: Postsetup should only run if a key exists
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3504531. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !452
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently the postsetup runs always, even if no key value is set, causing it to fail on OpenAI even if you don't want to set it up.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Use the dev versions of the modules on Drupal CMS.<br>
Setup Anthropic<br>
Fail</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Put the postsetup only if a key is set.</p>
issue