OpenAI Python tool adds moderation helpers
OpenAI released openai-python 2.41.0. The update adds responses.moderation and chat_completions.moderation. This helps small AI app makers check user input or AI output more easily.
Key points
- openai-python is the official Python tool for using the OpenAI API.
- responses.moderation adds content checks to the Responses API flow.
- chat_completions.moderation adds similar checks for the older Chat Completions flow.
- If you build AI tools, review your safety checks when updating this package.
Quick term guide
- openai-python
- The official Python package for using OpenAI features in code.
- Python
- Python is a common programming language used to build apps and scripts.
- responses.moderation
- A feature that checks content in the Responses API flow.
- responses
- An OpenAI API feature for creating and handling model answers.
- chat_completions.moderation
- A feature that checks content in the Chat Completions flow.
- OpenAI API
- A way for an app to send requests to OpenAI and get AI results back.
- AI tools
- Software that can help create text, code, images, or other work.
- safety check
- A step that checks for problems before the tool continues.