Class ModerationOptionsBuilder
java.lang.Object
org.springframework.ai.moderation.ModerationOptionsBuilder
A builder class for creating instances of ModerationOptions. Use the builder() method
to obtain a new instance of ModerationOptionsBuilder. Use the withModel() method to set
the model for moderation. Use the build() method to build the ModerationOptions
instance.
- Since:
- 1.0.0
- Author:
- Ahmed Yousri
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ModerationOptionsBuilder
builder()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
builder
-
model
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public ModerationOptionsBuilder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
build
-
model(String)
instead.