- Detect and block content that violates OpenAI’s content policy
- Handle both text and image content moderation
- Configure moderation for specific categories
- Use both sync and async moderation checks
- Customize moderation models and sensitivity settings
1
Create a Python file
Create a Python file for the example.
2
Add the following code to your Python file
openai_moderation.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Export your OpenAI API key
6
Run Agent
7
Find All Cookbooks
Explore all the available cookbooks in the Agno repository. Click the link below to view the code on GitHub:Agno Cookbooks on GitHub