Add safety settings support
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3466338. --> Reported by: [jibla](https://www.drupal.org/user/1013184) Related to !8 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>We need to implement <a href="https://ai.google.dev/api/generate-content#v1beta.SafetySetting">safety settings</a> (similar to moderation in openai terms). </p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>First, in Gemini's settings form needs to be added relevant fields to define default safety settings and then, in plugin's chat() method, we need to pass safety settings (now defaults are used).</p> > Related issue: [Issue #3572958](https://www.drupal.org/node/3572958)
issue