Class ModerationRequest.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.ModerationRequest.Builder
- Enclosing class:
- ModerationRequest
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
input
- Parameters:
input
- input to append to the list of input texts to classify
-
inputs
- Parameters:
inputs
- inputs to append to the list of input texts to classify
-
model
- Parameters:
model
- Two content moderations models are available: text-moderation-stable and text-moderation-latest.The default is text-moderation-latest which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use text-moderation-stable, we will provide advanced notice before updating the model. Accuracy of text-moderation-stable may be slightly lower than for text-moderation-latest.
-
model
- Parameters:
model
- Two content moderations models are available:OpenAIModel.TEXT_MODERATION_LATEST
andOpenAIModel.TEXT_MODERATION_STABLE
.
-
build
-