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,7 +10,8 @@ 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.
"""
### 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.