Error when using ai suggestion for field.

Created on 23 June 2025, 12 days ago

Problem/Motivation

Getting the below error in log when using ai suggestion for field.
Error: Class "League\HTMLToMarkdown\HtmlConverter" not found in Drupal\ai_content_suggestions\Hook\AiContentSuggestions::aiContentSuggestionsAjax() (line 188 of /var/www/html/modules/contrib/ai/modules/ai_content_suggestions/src/Hook/AiContentSuggestions.php)

Steps to reproduce

Enabled AI content suggestion module
Go to the "Manage form display" page for a content type that has a text field (e.g., Article > Manage form display).
Edit the widget settings for a supported field (like "Body" or any text field).
In the widget settings dialog, look for the "AI Suggestions" section.
Choose proper AI model to use for suggestions
Enter appropriate prompt AI Suggestion prompt
Give a proper "Button label" text field and save
Now, create or edit content of that type. The AI Suggestions button should appear near the field, using your custom label.
Click on the button for ai suggestions 

Error message prompt up.
Check in report log for details.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

AI Content Suggestions

Created by

🇮🇳India anjaliprasannan

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

Comments & Activities

Production build 0.71.5 2024