Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add SafetySettings Configuration for Google Gemini in LibreChat #2564

Closed
1 task done
lidonius1122 opened this issue Apr 27, 2024 · 0 comments · Fixed by #2644
Closed
1 task done

Enhancement: Add SafetySettings Configuration for Google Gemini in LibreChat #2564

lidonius1122 opened this issue Apr 27, 2024 · 0 comments · Fixed by #2644
Labels
enhancement New feature or request

Comments

@lidonius1122
Copy link
Contributor

What features would you like to see added?

I would like to see the addition of safety settings configuration for the Google Gemini API in LibreChat. Currently, LibreChat does not provide a way to modify these settings, which are enabled by default in the Gemini API and can be overly restrictive.

More details

The Google Gemini API includes the following safety settings that can block content based on different categories:

  • HARM_CATEGORY_DANGEROUS_CONTENT
  • HARM_CATEGORY_HATE_SPEECH
  • HARM_CATEGORY_HARASSMENT
  • HARM_CATEGORY_SEXUALLY_EXPLICIT

To fully utilize the capabilities of the Gemini API, it would be crucial to have the ability to customize or disable these settings according to the specific requirements of the application.

LibreChat should provide an interface or configuration options that allow developers to modify the safety settings, including the ability to set the threshold for each category to one of the following values:

  • BLOCK_NONE: Do not block any content in this category
  • BLOCK_LOW_AND_ABOVE: Block content with low or higher probability of belonging to this category
  • BLOCK_MED_AND_ABOVE: Block content with medium or higher probability of belonging to this category
  • BLOCK_ONLY_HIGH: Only block content with high probability of belonging to this category

By adding this feature, LibreChat will give developers the flexibility to control the behavior of the Gemini API and tailor it to their needs, ensuring that the API's functionality is not unnecessarily limited by the default safety settings.

https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini?hl=en

Which components are impacted by your request?

No response

Pictures

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant