Skip to content

ContentPolicyResult

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

ContentPolicyResult

The result of the moderation check from the Moderations endpoint.

public struct ContentPolicyResult: Codable 

Inheritance

Codable

Properties

categories

The flagged categories.

public let categories: ContentPolicyCategories

categoryScores

The score associated with each category.

public let categoryScores: ContentPolicyCategoryScore

flagged

Is the prompt flagged by the Moderations endpoint?

public let flagged: Bool
Types
Global Functions
Clone this wiki locally