Package com.openai.services.async.chat
Class ChatCompletionServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.chat.ChatCompletionServiceAsync
public final class ChatCompletionServiceAsyncImpl implements ChatCompletionServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description ChatCompletionServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. MessageServiceAsync
messages()
CompletableFuture<ChatCompletion>
create(ChatCompletionCreateParams params, RequestOptions requestOptions)
AsyncStreamResponse<ChatCompletionChunk>
createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
CompletableFuture<ChatCompletion>
retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
CompletableFuture<ChatCompletion>
update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
CompletableFuture<ChatCompletionDeleted>
delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
ChatCompletionServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
messages
MessageServiceAsync messages()
-
create
CompletableFuture<ChatCompletion> create(ChatCompletionCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<ChatCompletion> retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<ChatCompletion> update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<ChatCompletionDeleted> delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
-
-
-
-