Package com.openai.services.blocking
Class CompletionServiceImpl
-
- All Implemented Interfaces:
-
com.openai.services.blocking.CompletionService
public final class CompletionServiceImpl implements CompletionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompletionServiceImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description CompletionService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. CompletionServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. Completioncreate(CompletionCreateParams params, RequestOptions requestOptions)StreamResponse<Completion>createStreaming(CompletionCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
CompletionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
CompletionService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
Completion create(CompletionCreateParams params, RequestOptions requestOptions)
-
createStreaming
StreamResponse<Completion> createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
-
-
-
-