Class ModerationsClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.ModerationsClient
Given some input text, outputs if the model classifies it as potentially harmful across several
categories.
Based on Moderations
-
Method Summary
Modifier and TypeMethodDescriptioncreateModeration
(ModerationRequest request) Classifies if text is potentially harmful.
-
Method Details
-
createModeration
Classifies if text is potentially harmful.- Throws:
OpenAIException
- in case of API errors
-