Package com.openai.services.blocking
Interface ModerationService
-
- All Implemented Interfaces:
public interface ModerationService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceModerationService.WithRawResponseA view of ModerationService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModerationService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract ModerationServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. ModerationCreateResponsecreate(ModerationCreateParams params)Classifies if text and/or image inputs are potentially harmful. abstract ModerationCreateResponsecreate(ModerationCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ModerationService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract ModerationService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
ModerationCreateResponse create(ModerationCreateParams params)
Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.
-
create
abstract ModerationCreateResponse create(ModerationCreateParams params, RequestOptions requestOptions)
-
-
-
-