LibreChat/docs
Danny Avila 5293b73b6d
🤖 feat(google): Add safety settings configuration (#2644)
* 🤖 feat(google): Add safety settings configuration

- Implement safety settings configuration in GoogleClient.js
- Add safety settings variables in .env.example
- Update documentation to explain safety settings and clarify model usage

* fix(google): Apply safety settings only to Gemini models

Previously, the safety settings were being applied to all models, regardless of whether they were Gemini models or not. This commit ensures that the safety settings are only applied to models that contain the "gemini" string in their name.

The changes include:

- Extracting the model name from `payload.parameters.model`
- Checking if the model name exists and contains the "gemini" string
- Only applying the safety settings if the model name contains "gemini"
- Ignoring the safety settings for non-Gemini models

This fix ensures that the safety settings are only used for the intended Gemini models, and not applied to other models where they may not be applicable.

* Update GoogleClient.js

* fix(google): Apply safety settings only to Gemini models

---------

Co-authored-by: Oliver Faust <oliver@f4ust.de>
2024-05-08 21:32:23 -04:00
..
assets 🪪mkdocs: social cards (#1428) 2023-12-28 17:10:06 -05:00
contributions 🌍 fix(Translations): Map Partial langCode and Add Unit Tests (#2240) 2024-03-29 12:17:07 -04:00
deployment 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
dev remove 'MEILI_HTTP_ADDR' (#1475) 2024-01-03 08:59:55 -05:00
features 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
general_info 🦙 doc update: llama3 (#2470) 2024-04-19 21:40:12 -04:00
install 🤖 feat(google): Add safety settings configuration (#2644) 2024-05-08 21:32:23 -04:00
src 📋 chore: add requirements.txt to documentation (#2122) 2024-03-19 13:38:18 -04:00
CNAME Create CNAME (#568) 2023-07-02 09:48:43 -04:00
index.md 🐳 feat: RAG for Default Docker Compose Files + Docs Update (#2246) 2024-03-29 21:15:36 -04:00