From e489ff08981253694081455534acaaecd8720a37 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:07:52 +0500 Subject: [PATCH] update comments --- api/moderation.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/api/moderation.py b/api/moderation.py index d040e8f..dd65872 100644 --- a/api/moderation.py +++ b/api/moderation.py @@ -10,12 +10,13 @@ import load_balancing from typing import Union async def is_policy_violated(inp: Union[str, list]) -> bool: - """Check if a message violates the moderation policy. -You can either pass a list of messages consisting of dicts with "role" and "content", as used in the API parameter, -or just a simple string. - -Returns True if the message violates the policy, False otherwise. -""" + """ + ### Check if a message violates the moderation policy. + You can either pass a list of messages consisting of dicts with "role" and "content", as used in the API parameter, + or just a simple string. + + Returns True if the message violates the policy, False otherwise. + """ text = inp