Skip to content

ContentPolicyResponse

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

ContentPolicyResponse

The struct sent from the Moderations endpoint.

public struct ContentPolicyResponse: Codable, Identifiable 

Inheritance

Codable, Identifiable

Properties

id

The ID of the Moderation response.

public let id: String

model

The model used for the moderation check.

public let model: String

results

The array of results associated with the prompt(s).

public let results: [ContentPolicyResult]
Types
Global Functions
Clone this wiki locally