AI CKEditor: configure prompts per filter_format
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3550954. --> Reported by: [svendecabooter](https://www.drupal.org/user/35369) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>As a followup to <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-14"><a href="https://www.drupal.org/project/ai/issues/3549657" title="Status: Reviewed &amp; tested by the community">#3549657: AI CKEditor: use prompt entities instead of custom configurations</a></span>, I noticed the ai_ckeditor prompts are stored in global settings for the module.<br> However, other settings (such as the selected provider) are stored in the AiCKEditor plugin settings, on a per filter_format basis.</p> <p>Is there a specific reason for this? And is that reason still valid after prompts are stored as ai_prompt entities, rather than just textual prompts in config?</p> <p>It might be interesting to store a reference to the selected ai_prompt entity on a per filter_format basis.<br> That way, users can decide to provide alternative prompts, based on the filter format that is chosen.</p> <p>Especially since the AI provider can also be changed per filter format, it seems logical you might want to provide a different prompt per filter format as well (e.g. to tailor it towards the selected AI provider).</p> > Related issue: [Issue #3549657](https://www.drupal.org/node/3549657)
issue