aimoderationproject / chatgptmoderationapptest.py
lg3394's picture
Update chatgptmoderationapptest.py
ada699b 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)