Error on generating and editing Content Type with AI in Drupal CMS

Created on 12 December 2024, 10 days ago

Problem/Motivation

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).

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.

Steps to reproduce

Locally install Drupal CMS.

I think the recipes I added on site setup are: News, Events, Blog.

Enable the AI modules in the site. (I have enabled all of the AI modules except for AI Validations and AI ECA Integration).

Go to Structure > Content Types > +Generate with AI > Add some info for a new Content Type > click to create it and this is where I see the error in the browser. (image attached)

If you go back in the browser to your list of CTs, the new CT is successfully created.

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.

Proposed resolution

Squash the bug : )

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gto1 Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gto1
  • πŸ‡¬πŸ‡§United Kingdom MrDaleSmith

    I think I've found and fixed the same issue in https://www.drupal.org/project/ai_agents/issues/3493312 πŸ› [ai_agents_form_integration] Blueprint forms Active - could you test there?

  • πŸ‡ΊπŸ‡ΈUnited States gto1 Philadelphia

    I checked out the other ticket.
    I did try the dev version there with:

    composer require 'drupal/ai_agents:1.0.x-dev@dev'

    And now I'm seeing on the AI Agents Form Integration module:
    Requires: AI Agents, AI CoreKey, simple_crawler (missing) unstructured (missing)

    But the error initially reported in this ticket is still happening when adding/editing CTs with AI.

Production build 0.71.5 2024