init(from decoder: any Decoder) throws
s6OpenAI16ModerationsQueryV4fromACs7Decoder_p_tKcfc
5BQA2
import OpenAI
struct ModerationsQuery
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(input: String, model: Model? = nil)
let input: String
The input text to classify.
let model: Model?
ID of the model to use.