public class Moderation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ModerationCategories |
categories
Object containing per-category binary content policy violation flags.
|
ModerationCategoryScores |
categoryScores
Object containing per-category raw scores output by the model, denoting the model's confidence that the
input violates the OpenAI's policy for the category.
|
boolean |
flagged
Set to true if the model classifies the content as violating OpenAI's content policy, false otherwise
|
| Constructor and Description |
|---|
Moderation() |
public boolean flagged
public ModerationCategories categories
public ModerationCategoryScores categoryScores