Package com.openai.services.async
Class CompletionServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.CompletionServiceAsync
public final class CompletionServiceAsyncImpl implements CompletionServiceAsync
-
-
Method Summary
Modifier and Type Method Description CompletableFuture<Completion>
create(CompletionCreateParams params, RequestOptions requestOptions)
Creates a completion for the provided prompt and parameters. AsyncStreamResponse<Completion>
createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
Creates a completion for the provided prompt and parameters. -
-
Method Detail
-
create
CompletableFuture<Completion> create(CompletionCreateParams params, RequestOptions requestOptions)
Creates a completion for the provided prompt and parameters.
-
createStreaming
AsyncStreamResponse<Completion> createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
Creates a completion for the provided prompt and parameters.
-
-
-
-