class

OpenAI::CreateModerationRequest

Inherits JSON::Serializable < Reference < Object

Constructors

new(input : CreateModerationRequestInput = "", model : CreateModerationRequestModel | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance 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.

Source
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.

Source
model

The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.

Source
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.

Source