Moderation

data class Moderation(val id: String, val model: String = "omni-moderation-latest", val results: List<ModerationResult> = emptyList())(source)

Represents the moderation results returned by the OpenAI moderation endpoint.

See https://platform.openai.com/docs/api-reference/moderations/object

Constructors

Link copied to clipboard
constructor(id: String, model: String = "omni-moderation-latest", results: List<ModerationResult> = emptyList())

Properties

Link copied to clipboard
val id: String

The unique identifier for the moderation response.

Link copied to clipboard

The name of the model that generated the moderation results.

Link copied to clipboard

The list of individual moderation results that provide details about flagged content and the categories associated with the moderation check.