-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 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>
- Loading branch information
1 parent
b6d1f5f
commit 5293b73
Showing
3 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters