Gemini API error with empty stopSequences value
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3502139. --> Reported by: [merilainen](https://www.drupal.org/user/304437) Related to !10 !6 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>While testing the Gemini provider with the chat explorer, there seems to be a discrepancy between and error and the help text related to the Stop Sequences value.</p> <pre>Error invoking model response: Unable to submit request because it has a stopSequences value of 0 but the supported range is from 1 (inclusive) to 17 (exclusive). Update the value and try again.</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Install the module and go to Chat explorer at /admin/config/ai/explorers/chat_generator<br> The error will appear when the "Stop Sequences" value is empty.<br> Using for example value "1" works.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>To me it looks like the help text is correct according to the API documentation <a href="https://ai.google.dev/api/generate-content#generationconfig">https://ai.google.dev/api/generate-content#generationconfig</a><br> Need to figure out why the error response message says something different.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3572958](https://www.drupal.org/node/3572958)
issue