Package com.openai.services.blocking
        Interface CompletionService
- 
                    
                    
- All Implemented Interfaces:
 
public interface CompletionService 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCompletionService.WithRawResponseA view of CompletionService that provides access to raw HTTP responses for each method.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description abstract CompletionService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract CompletionServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. Completioncreate(CompletionCreateParams params)Creates a completion for the provided prompt and parameters. abstract Completioncreate(CompletionCreateParams params, RequestOptions requestOptions)StreamResponse<Completion>createStreaming(CompletionCreateParams params)Creates a completion for the provided prompt and parameters. abstract StreamResponse<Completion>createStreaming(CompletionCreateParams params, RequestOptions requestOptions)- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
withRawResponse
abstract CompletionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
 
- 
                                        
withOptions
abstract CompletionService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
 
- 
                                        
create
Completion create(CompletionCreateParams params)
Creates a completion for the provided prompt and parameters.
 
- 
                                        
create
abstract Completion create(CompletionCreateParams params, RequestOptions requestOptions)
 
- 
                                        
createStreaming
@MustBeClosed() StreamResponse<Completion> createStreaming(CompletionCreateParams params)
Creates a completion for the provided prompt and parameters.
 
- 
                                        
createStreaming
@MustBeClosed() abstract StreamResponse<Completion> createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -