Package com.openai.services.async
Interface ModerationServiceAsync.WithRawResponse
-
- All Implemented Interfaces:
public interface ModerationServiceAsync.WithRawResponseA view of ModerationServiceAsync that provides access to raw HTTP responses for each method.
-
-
Method Summary
Modifier and Type Method Description abstract ModerationServiceAsync.WithRawResponsewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<HttpResponseFor<ModerationCreateResponse>>create(ModerationCreateParams params)Returns a raw HTTP response for post /moderations, but is otherwise the same as ModerationServiceAsync.create.abstract CompletableFuture<HttpResponseFor<ModerationCreateResponse>>create(ModerationCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withOptions
abstract ModerationServiceAsync.WithRawResponse 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<HttpResponseFor<ModerationCreateResponse>> create(ModerationCreateParams params)
Returns a raw HTTP response for
post /moderations, but is otherwise the same as ModerationServiceAsync.create.
-
create
abstract CompletableFuture<HttpResponseFor<ModerationCreateResponse>> create(ModerationCreateParams params, RequestOptions requestOptions)
-
-
-
-