Generate with AI prompt required

Created on 8 April 2025, 16 days ago

Problem/Motivation

When enabling the Generate With AI option for the CK Editor AI module in a text format, it shows a text box called"Completion pre prompt". This has the help text "This prompt will be prepended before the user prompt. This field may be left empty too." but when the Enabled checkbox is ticked, the textbox becomes required and it is not possible to save the form with it empty.

Remaining tasks

It is not clear whether the help text or the required status is incorrect, so we will need a maintainer to advise and then the relevant solution put in place.

🐛 Bug report
Status

Active

Version

1.1

Component

AI CKEditor

Created by

🇬🇧United Kingdom MrDaleSmith

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

Comments & Activities

  • Issue created by @MrDaleSmith
  • 🇮🇳India anjaliprasannan

    I tried in a fresh installation of drupal and could not reproduce the issue.

  • 🇬🇧United Kingdom MrDaleSmith

    Your video doesn't show you clicking "enable" on the Generate with AI section of the settings: it shows you unchecking the box. To recreate, use the latest dev 1.1 release, check the "enable" box but do not enter a prompt in the text area.

  • 🇮🇳India anjaliprasannan

    @mrdalesmith Apologise, I have tried this again and I see the issue exist. Once the maintainers have a word on this, I will proceed on the fix.

  • 🇮🇳India prashant.c Dharamshala

    Since there hasn't been any activity on this for the past 5 days and we are seeking for input from the maintainers, I am unassigning @anjaliprasannan for now.

    Feel free to reassign it to yourself once the necessary inputs are available.

    Also, we might want to consider leaving the prompt field empty, as the help text suggests: "This prompt will be prepended before the user prompt. This field may be left empty too."

  • 🇮🇳India prashant.c Dharamshala
Production build 0.71.5 2024