update comments

This commit is contained in:
Game_Time 2023-08-13 14:07:52 +05:00 committed by GitHub
parent 15f98d8da8
commit e489ff0898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,12 +10,13 @@ import load_balancing
from typing import Union from typing import Union
async def is_policy_violated(inp: Union[str, list]) -> bool: 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, ### Check if a message violates the moderation policy.
or just a simple string. 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. Returns True if the message violates the policy, False otherwise.
""" """
text = inp text = inp