diff --git a/api/core/moderation/base.py b/api/core/moderation/base.py index 9a369a9f87742..757dd2ab46567 100644 --- a/api/core/moderation/base.py +++ b/api/core/moderation/base.py @@ -9,7 +9,7 @@ class ModerationAction(Enum): DIRECT_OUTPUT = 'direct_output' - OVERRIDED = 'overrided' + OVERRIDDEN = 'overridden' class ModerationInputsResult(BaseModel): diff --git a/api/core/moderation/input_moderation.py b/api/core/moderation/input_moderation.py index 8157b300b1f6c..46dfacbc9e0d8 100644 --- a/api/core/moderation/input_moderation.py +++ b/api/core/moderation/input_moderation.py @@ -64,7 +64,7 @@ def check( if moderation_result.action == ModerationAction.DIRECT_OUTPUT: raise ModerationException(moderation_result.preset_response) - elif moderation_result.action == ModerationAction.OVERRIDED: + elif moderation_result.action == ModerationAction.OVERRIDDEN: inputs = moderation_result.inputs query = moderation_result.query