Skip to content

Commit 358b9f9

Browse files
committed
format
1 parent 5259ec5 commit 358b9f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fastchat/utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,15 @@ def oai_moderation(text, custom_thresholds=None):
175175

176176
def moderation_filter(text, model_list, do_moderation=False):
177177
# Apply moderation for below models
178-
MODEL_KEYWORDS = ["claude", "gpt", "bard", "gemini", "mistral-large", "command-r", "dbrx"]
178+
MODEL_KEYWORDS = [
179+
"claude",
180+
"gpt",
181+
"bard",
182+
"gemini",
183+
"mistral-large",
184+
"command-r",
185+
"dbrx",
186+
]
179187

180188
custom_thresholds = {"sexual": 0.3}
181189
# set a stricter threshold for claude

0 commit comments

Comments
 (0)