Skip to content

Commit c90b8fc

Browse files
committed
Fix edge case
1 parent a2200e4 commit c90b8fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fastchat/serve/moderation/moderator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def text_moderation_filter(
203203
do_moderation = True
204204
break
205205

206+
moderation_response_map = {"flagged": False}
206207
if do_moderation:
207208
moderation_response_map = self._openai_moderation_filter(
208209
text, custom_thresholds

0 commit comments

Comments
 (0)