open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
931 stars 297 forks source link

Add Gemini Manifold Pipeline Safety Settings #191

Closed justinh-rahb closed 3 months ago

justinh-rahb commented 3 months ago

This PR introduces a new configurable option for the Gemini Manifold pipeline, providing users with greater flexibility in managing content safety settings:

  1. Added a new valve USE_PERMISSIVE_SAFETY (default: false) to the pipeline configuration.
  2. When enabled, this setting applies the most permissive safety thresholds across all harm categories.
  3. Users can now toggle between permissive and default safety settings without code modifications.

Key benefits:

This change aims to balance user freedom with responsible AI use, giving Open-WebUI users more control over their interaction with the Gemini models while preserving the option for stricter content filtering when needed.

[!CAUTION] Note: Users should be aware of and comply with Google's usage policies and any applicable regulations when adjusting these settings.

Addresses:

Credit:

@rotemdan for the code snippet in #177