class

OpenAI::ModerationTextInput

Inherits JSON::Serializable < Reference < Object

An object describing text to classify.

Constructors

new(type_value : ModerationTextInputType = ModerationTextInputType::Text, text : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text

A string of text to classify.

Source
text=(text : String)

A string of text to classify.

Source
type_value

Always text.

Source
type_value=(type_value : ModerationTextInputType)

Always text.

Source