Moderation Extension
This module is used to review the content input by end-users and the output from LLMs within the application, divided into two types of extension points.
Please read API Based Extension to complete the development and integration of basic API service capabilities.
Extension Point
app.moderation.input
: End-user input content review extension point. It is used to review the content of variables passed in by end-users and the input content of dialogues in conversational applications.
app.moderation.output
: LLM output content review extension point. It is used to review the content output by LLM. When the LLM output is streaming, the content will be requested by the API in chunks of 100 characters to avoid delays in review when the output content is lengthy.
app.moderation.input
app.moderation.input
Request Body
Example
API Response
Example
action=direct_output
action=overrided
app.moderation.output
app.moderation.output
Request Body
Example
API Response
Example
action=direct_output
action=overrided
Last updated