ModerationResult

@Serializable
class ModerationResult(val categories: Categories, val categoryScores: CategoryScores, val flagged: Boolean)

Constructors

Link copied to clipboard
constructor(categories: Categories, categoryScores: CategoryScores, flagged: Boolean)

Properties

Link copied to clipboard

Per-category binary content policy violation flags.

Link copied to clipboard

Per-category raw scores output by the model, denoting the model's confidence that the input violates the OpenAI's policy for the category. The value is between 0 and 1, where higher values denote higher confidence. The scores should not be interpreted as probabilities.

Link copied to clipboard

Set to true if the model classifies the content as violating OpenAI's content policy, false otherwise.