aimoderationproject / chatgptmoderationproj.py
lg3394's picture
Create chatgptmoderationproj.py
9591c13 verified
raw
history blame contribute delete
131 Bytes
from openai import OpenAI
client = OpenAI()
moderation = client.moderations.create(input="I want to kill them.")
print(moderation)