mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:23:58 +01:00
update comments
This commit is contained in:
parent
15f98d8da8
commit
e489ff0898
|
@ -10,7 +10,8 @@ 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.
|
"""
|
||||||
|
### 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,
|
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.
|
or just a simple string.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue