ModerationRequest

@Serializable
class ModerationRequest(val input: List<String>, val model: ModerationModel? = null)

Request to classify if text violates OpenAI's Content Policy.

Constructors

Link copied to clipboard
constructor(input: List<String>, model: ModerationModel? = null)

Properties

Link copied to clipboard
@SerialName(value = "input")
val input: List<String>

The input text to classify.

Link copied to clipboard
@SerialName(value = "model")
val model: ModerationModel? = null

Moderation model. Defaults to ModerationModel.Latest.