Package com.openai.services.blocking
Interface ModerationService
-
- All Implemented Interfaces:
public interface ModerationService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ModerationService.WithRawResponse
A view of ModerationService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModerationService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. ModerationCreateResponse
create(ModerationCreateParams params)
Classifies if text and/or image inputs are potentially harmful. abstract ModerationCreateResponse
create(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.
-
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)
-
-
-
-