Error on generating and editing Content Type with AI in Drupal CMS
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3493598. --> Reported by: [gto1](https://www.drupal.org/user/2539338) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I am running Drupal CMS locally. I have most of the AI modules enabled. I have a lot of the AI features working in the site. But trying to create or edit a content type with the +Generate with AI button gives an error. (images attached). </p> <p>Interestingly, it gives this error but if you then go back to the site and view your content types, the newly added content type is there, created successfully.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Locally install Drupal CMS. </p> <p>I think the recipes I added on site setup are: News, Events, Blog.</p> <p>Enable the AI modules in the site. (I have enabled all of the AI modules except for AI Validations and AI ECA Integration).</p> <p>Go to Structure &gt; Content Types &gt; +Generate with AI &gt; Add some info for a new Content Type &gt; click to create it and this is where I see the error in the browser. (image attached)</p> <p>If you go back in the browser to your list of CTs, the new CT is successfully created.</p> <p>Basically the same thing happens for me when I use the AI option to edit an existing CT as well, like add new field, for example.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Squash the bug : )</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3493312](https://www.drupal.org/node/3493312)
issue