Class ChatCompletionCreateParams.Moderation
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.ModerationConfiguration for running moderation on the request input and generated output.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionCreateParams.Moderation.BuilderA builder for Moderation.
-
Method Summary
Modifier and Type Method Description final Stringmodel()The moderation model to use for moderated completions, e.g. final JsonField<String>_model()Returns the raw JSON value of model. final Map<String, JsonValue>_additionalProperties()final ChatCompletionCreateParams.Moderation.BuildertoBuilder()final ChatCompletionCreateParams.Moderationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionCreateParams.Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
model
final String model()
The moderation model to use for moderated completions, e.g. 'omni-moderation-latest'.
-
_model
final JsonField<String> _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 ChatCompletionCreateParams.Moderation.Builder toBuilder()
-
validate
final ChatCompletionCreateParams.Moderation validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ChatCompletionCreateParams.Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.model()
-
-
-
-