Package com.openai.services.async
Interface ModerationServiceAsync
-
- All Implemented Interfaces:
public interface ModerationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ModerationServiceAsync.WithRawResponse
A view of ModerationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModerationServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. CompletableFuture<ModerationCreateResponse>
create(ModerationCreateParams params)
Classifies if text and/or image inputs are potentially harmful. abstract CompletableFuture<ModerationCreateResponse>
create(ModerationCreateParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract ModerationServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<ModerationCreateResponse> create(ModerationCreateParams params)
Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.
-
create
abstract CompletableFuture<ModerationCreateResponse> create(ModerationCreateParams params, RequestOptions requestOptions)
-
-
-
-