AI Test does not capture the response in ckeditor plugins
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3576162. --> Reported by: [enriquelacoma](https://www.drupal.org/user/3570766) Related to !1260 >>> <p>[Tracker]<br> <strong>Update Summary: </strong><br> <strong>Short Description: </strong><br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Ckeditor plugins AI request are not saved correctly by the ai_test module and the response appears empty.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <ol> <li>Enable ai_ckeditor and ai_test and an AI provider, I have used ollama and mistral and I get the same result. </li> <li>Configure your provider and enable a ckeditor AI plugin. Enable the recording of AI request as explained in the documentation <a href="https://project.pages.drupalcode.org/ai/1.2.x/developers/virtual_provider/">https://project.pages.drupalcode.org/ai/1.2.x/developers/virtual_provider/</a> </li> <li>Edit some content using the plugin</li> <li>Go to the mocks list and open the last one created from your request, check the response field is empty admin/content/ai-mock-provider-result</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>We can add an option on the configuration of a ckeditor plugin to not stream the response, that way ai_test can capture the request</p> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue