Class ChatCompletionServiceImpl
-
- All Implemented Interfaces:
-
com.openai.services.blocking.chat.ChatCompletionService
public final class ChatCompletionServiceImpl implements ChatCompletionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionServiceImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description ChatCompletionService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. ChatCompletionServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. MessageServicemessages()ChatCompletioncreate(ChatCompletionCreateParams params, RequestOptions requestOptions)StreamResponse<ChatCompletionChunk>createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)ChatCompletionretrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)ChatCompletionupdate(ChatCompletionUpdateParams params, RequestOptions requestOptions)ChatCompletionListPagelist(ChatCompletionListParams params, RequestOptions requestOptions)ChatCompletionDeleteddelete(ChatCompletionDeleteParams params, RequestOptions requestOptions)-
Methods inherited from class com.openai.services.blocking.chat.ChatCompletionService
create, create, create, createStreaming, createStreaming, createStreaming, delete, delete, delete, delete, delete, list, list, list, retrieve, retrieve, retrieve, retrieve, retrieve, update, update, update -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withRawResponse
ChatCompletionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
ChatCompletionService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
messages
MessageService messages()
-
create
ChatCompletion create(ChatCompletionCreateParams params, RequestOptions requestOptions)
-
createStreaming
StreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
-
retrieve
ChatCompletion retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
-
update
ChatCompletion update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
-
list
ChatCompletionListPage list(ChatCompletionListParams params, RequestOptions requestOptions)
-
delete
ChatCompletionDeleted delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
-
-
-
-