Interface ChatCompletionServiceAsync.WithRawResponse
- 
                    
                    
- All Implemented Interfaces:
 
public interface ChatCompletionServiceAsync.WithRawResponseA view of ChatCompletionServiceAsync that provides access to raw HTTP responses for each method.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
withOptions
abstract ChatCompletionServiceAsync.WithRawResponse withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
 
- 
                                        
messages
abstract MessageServiceAsync.WithRawResponse messages()
 
- 
                                        
create
CompletableFuture<HttpResponseFor<ChatCompletion>> create(ChatCompletionCreateParams params)
Returns a raw HTTP response for
post /chat/completions, but is otherwise the same as ChatCompletionServiceAsync.create. 
- 
                                        
create
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> create(ChatCompletionCreateParams params, RequestOptions requestOptions)
 
- 
                                        
createStreaming
@MustBeClosed() CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>> createStreaming(ChatCompletionCreateParams params)
Returns a raw HTTP response for
post /chat/completions, but is otherwise the same as ChatCompletionServiceAsync.createStreaming. 
- 
                                        
createStreaming
@MustBeClosed() abstract CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
 
- 
                                        
retrieve
CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(String completionId)
Returns a raw HTTP response for
get /chat/completions/{completion_id}, but is otherwise the same as ChatCompletionServiceAsync.retrieve. 
- 
                                        
retrieve
CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(String completionId, ChatCompletionRetrieveParams params, RequestOptions requestOptions)
 
- 
                                        
retrieve
CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(String completionId, ChatCompletionRetrieveParams params)
 
- 
                                        
retrieve
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
 
- 
                                        
retrieve
CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(ChatCompletionRetrieveParams params)
 
- 
                                        
retrieve
CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(String completionId, RequestOptions requestOptions)
 
- 
                                        
update
CompletableFuture<HttpResponseFor<ChatCompletion>> update(String completionId, ChatCompletionUpdateParams params)
Returns a raw HTTP response for
post /chat/completions/{completion_id}, but is otherwise the same as ChatCompletionServiceAsync.update. 
- 
                                        
update
CompletableFuture<HttpResponseFor<ChatCompletion>> update(String completionId, ChatCompletionUpdateParams params, RequestOptions requestOptions)
 
- 
                                        
update
CompletableFuture<HttpResponseFor<ChatCompletion>> update(ChatCompletionUpdateParams params)
 
- 
                                        
update
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
 
- 
                                        
list
CompletableFuture<HttpResponseFor<ChatCompletionListPageAsync>> list()
Returns a raw HTTP response for
get /chat/completions, but is otherwise the same as ChatCompletionServiceAsync.list. 
- 
                                        
list
abstract CompletableFuture<HttpResponseFor<ChatCompletionListPageAsync>> list(ChatCompletionListParams params, RequestOptions requestOptions)
 
- 
                                        
list
CompletableFuture<HttpResponseFor<ChatCompletionListPageAsync>> list(ChatCompletionListParams params)
 
- 
                                        
list
CompletableFuture<HttpResponseFor<ChatCompletionListPageAsync>> list(RequestOptions requestOptions)
 
- 
                                        
delete
CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(String completionId)
Returns a raw HTTP response for
delete /chat/completions/{completion_id}, but is otherwise the same as ChatCompletionServiceAsync.delete. 
- 
                                        
delete
CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(String completionId, ChatCompletionDeleteParams params, RequestOptions requestOptions)
 
- 
                                        
delete
CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(String completionId, ChatCompletionDeleteParams params)
 
- 
                                        
delete
abstract CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
 
- 
                                        
delete
CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(ChatCompletionDeleteParams params)
 
- 
                                        
delete
CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(String completionId, RequestOptions requestOptions)
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -