Allow setting the maxlenght of chatbot messages
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3552600. -->
Reported by: [omarlopesino](https://www.drupal.org/user/2853043)
Related to !956
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In order to prevent long prompts that may exceed faster the usage limits, it would be nice to have the option to limit the number of characters to add in the chatbot before sending it.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>Add AI chatbot block (any kind) to the page.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a configuration page to set the query max length, and add a client-back validation that checks the length is not exceeded.</p>
issue