1. 学ぶ
  2. /
  3. コース
  4. /
  5. Developing AI Systems with the OpenAI API

Connected

演習

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.

指示

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