OpenAI::CreateModerationRequest
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(input : CreateModerationRequestInput = "", model : CreateModerationRequestModel | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
input
Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.
input=(input : CreateModerationRequestInput)
Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.
model
The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.
model=(model : CreateModerationRequestModel | Nil)
The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.