Package com.openai.models.moderations
Class ModerationCreateParams.Body
-
- All Implemented Interfaces:
public final class ModerationCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModerationCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final ModerationCreateParams.Inputinput()Input (or inputs) to classify. final Optional<ModerationModel>model()The content moderation model you would like to use. final JsonField<ModerationCreateParams.Input>_input()Returns the raw JSON value of input. final JsonField<ModerationModel>_model()Returns the raw JSON value of model. final Map<String, JsonValue>_additionalProperties()final ModerationCreateParams.Body.BuildertoBuilder()final ModerationCreateParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModerationCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
input
final ModerationCreateParams.Input 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.
-
model
final Optional<ModerationModel> model()
The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.
-
_input
final JsonField<ModerationCreateParams.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<ModerationModel> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModerationCreateParams.Body.Builder toBuilder()
-
validate
final ModerationCreateParams.Body validate()
-
builder
final static ModerationCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.input()
-
-
-
-