Skip to content

Commit

Permalink
fix: change safety settings to none for gemini api.
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Jun 26, 2024
1 parent 8fa35e6 commit fd08efa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,16 @@ class OpenAiRepository : KoinComponent {
safety_settings = listOf(
SafetySetting(
category = "HARM_CATEGORY_SEXUALLY_EXPLICIT",
threshold = "BLOCK_ONLY_HIGH"
threshold = "BLOCK_NONE"
),
SafetySetting(
category = "HARM_CATEGORY_HATE_SPEECH",
threshold = "BLOCK_ONLY_HIGH"
threshold = "BLOCK_NONE"
),
SafetySetting(category = "HARM_CATEGORY_HARASSMENT", threshold = "BLOCK_ONLY_HIGH"),
SafetySetting(
category = "HARM_CATEGORY_DANGEROUS_CONTENT",
threshold = "BLOCK_ONLY_HIGH"
threshold = "BLOCK_NONE"
)
)
)
Expand Down

0 comments on commit fd08efa

Please sign in to comment.