Package com.openai.services.async
Interface ModerationServiceAsync
-
- All Implemented Interfaces:
public interface ModerationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceModerationServiceAsync.WithRawResponseA view of ModerationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModerationServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract ModerationServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. 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.
-
withOptions
abstract ModerationServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
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)
-
-
-
-