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