API-Based Extension
Sensitive Content Moderation
This module is used to review the content input by end-users and the output content of the LLM within the application. It is divided into two types of extension points.
Extension Points
app.moderation.input
- Extension point for reviewing end-user input content- Used to review the variable content passed in by end-users and the input content of conversational applications.
app.moderation.output
- Extension point for reviewing LLM output content- Used to review the content output by the LLM.
- When the LLM output is streamed, the content will be segmented into 100-character blocks for API requests to avoid delays in reviewing longer outputs.
app.moderation.input Extension Point
Request Body
- Example
-
API Response
- Example
action=direct_output
-
action=overridden
-
app.moderation.output Extension Point
Request Body
- Example
-
API Response
- Example
action=direct_output
-
action=overridden
-