1. Learn
  2. /
  3. Courses
  4. /
  5. Developing AI Systems with the OpenAI API

Connected

Exercise

Moderation API

You are developing a chatbot that provides educational content to learn languages. You'd like to make sure that users don't post inappropriate content to your API, and decide to use the moderation API to check users' prompts before generating the response.

Instructions

100 XP
  • Use the moderation API to check the user message for inappropriate content within categories.
  • Print the response.