Interface ChatCompletionServiceAsync
- 
                    
                    - All Implemented Interfaces:
 
 public interface ChatCompletionServiceAsync
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceChatCompletionServiceAsync.WithRawResponseA view of ChatCompletionServiceAsync that provides access to raw HTTP responses for each method. 
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        withRawResponseabstract ChatCompletionServiceAsync.WithRawResponse withRawResponse() Returns a view of this service that provides access to raw HTTP responses for each method. 
 - 
                                        withOptionsabstract ChatCompletionServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier) Returns a view of this service with the given option modifications applied. The original service is not modified. 
 - 
                                        messagesabstract MessageServiceAsync messages() 
 - 
                                        createCompletableFuture<ChatCompletion> create(ChatCompletionCreateParams params) Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. 
 - 
                                        createabstract CompletableFuture<ChatCompletion> create(ChatCompletionCreateParams params, RequestOptions requestOptions) 
 - 
                                        create<T extends Any> CompletableFuture<StructuredChatCompletion<T>> create(StructuredChatCompletionCreateParams<T> params) Creates a model response for the given chat conversation. The model's structured output in JSON form will be deserialized automatically into an instance of the class T. See the SDK documentation for more details.
 - 
                                        create<T extends Any> CompletableFuture<StructuredChatCompletion<T>> create(StructuredChatCompletionCreateParams<T> params, RequestOptions requestOptions) Creates a model response for the given chat conversation. The model's structured output in JSON form will be deserialized automatically into an instance of the class T. See the SDK documentation for more details.
 - 
                                        createStreamingAsyncStreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params) Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses. Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides. Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide. 
 - 
                                        createStreamingabstract AsyncStreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions) 
 - 
                                        createStreamingAsyncStreamResponse<ChatCompletionChunk> createStreaming(StructuredChatCompletionCreateParams<?> params) Creates a streaming model response for the given chat conversation. The input parameters can define a JSON schema derived automatically from an arbitrary class to request a structured output in JSON form. However, that structured output is split over multiple streamed events, so it will not be deserialized automatically into an instance of that class. To deserialize the output, first use a helper class to accumulate the stream of events into a single output value. See the SDK documentation for full details. 
 - 
                                        createStreamingAsyncStreamResponse<ChatCompletionChunk> createStreaming(StructuredChatCompletionCreateParams<?> params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<ChatCompletion> retrieve(String completionId) Get a stored chat completion. Only Chat Completions that have been created with the storeparameter set totruewill be returned.
 - 
                                        retrieveCompletableFuture<ChatCompletion> retrieve(String completionId, ChatCompletionRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<ChatCompletion> retrieve(String completionId, ChatCompletionRetrieveParams params) 
 - 
                                        retrieveabstract CompletableFuture<ChatCompletion> retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<ChatCompletion> retrieve(ChatCompletionRetrieveParams params) 
 - 
                                        retrieveCompletableFuture<ChatCompletion> retrieve(String completionId, RequestOptions requestOptions) 
 - 
                                        updateCompletableFuture<ChatCompletion> update(String completionId, ChatCompletionUpdateParams params) Modify a stored chat completion. Only Chat Completions that have been created with the storeparameter set totruecan be modified. Currently, the only supported modification is to update themetadatafield.
 - 
                                        updateCompletableFuture<ChatCompletion> update(String completionId, ChatCompletionUpdateParams params, RequestOptions requestOptions) 
 - 
                                        updateCompletableFuture<ChatCompletion> update(ChatCompletionUpdateParams params) 
 - 
                                        updateabstract CompletableFuture<ChatCompletion> update(ChatCompletionUpdateParams params, RequestOptions requestOptions) 
 - 
                                        listCompletableFuture<ChatCompletionListPageAsync> list() List stored Chat Completions. Only Chat Completions that have been stored with the storeparameter set totruewill be returned.
 - 
                                        listabstract CompletableFuture<ChatCompletionListPageAsync> list(ChatCompletionListParams params, RequestOptions requestOptions) 
 - 
                                        listCompletableFuture<ChatCompletionListPageAsync> list(RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<ChatCompletionDeleted> delete(String completionId) Delete a stored chat completion. Only Chat Completions that have been created with the storeparameter set totruecan be deleted.
 - 
                                        deleteCompletableFuture<ChatCompletionDeleted> delete(String completionId, ChatCompletionDeleteParams params, RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<ChatCompletionDeleted> delete(String completionId, ChatCompletionDeleteParams params) 
 - 
                                        deleteabstract CompletableFuture<ChatCompletionDeleted> delete(ChatCompletionDeleteParams params, RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<ChatCompletionDeleted> delete(ChatCompletionDeleteParams params) 
 - 
                                        deleteCompletableFuture<ChatCompletionDeleted> delete(String completionId, RequestOptions requestOptions) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-