Package com.openai.services.async
        Interface EmbeddingServiceAsync
- 
                    
                    
- All Implemented Interfaces:
 
public interface EmbeddingServiceAsync 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceEmbeddingServiceAsync.WithRawResponseA view of EmbeddingServiceAsync that provides access to raw HTTP responses for each method.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description abstract EmbeddingServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract EmbeddingServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<CreateEmbeddingResponse>create(EmbeddingCreateParams params)Creates an embedding vector representing the input text. abstract CompletableFuture<CreateEmbeddingResponse>create(EmbeddingCreateParams params, RequestOptions requestOptions)- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
withRawResponse
abstract EmbeddingServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
 
- 
                                        
withOptions
abstract EmbeddingServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
 
- 
                                        
create
CompletableFuture<CreateEmbeddingResponse> create(EmbeddingCreateParams params)
Creates an embedding vector representing the input text.
 
- 
                                        
create
abstract CompletableFuture<CreateEmbeddingResponse> create(EmbeddingCreateParams params, RequestOptions requestOptions)
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -