Package com.openai.services.blocking
Interface EmbeddingService
-
- All Implemented Interfaces:
public interface EmbeddingService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
EmbeddingService.WithRawResponse
A view of EmbeddingService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract EmbeddingService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract EmbeddingService
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. CreateEmbeddingResponse
create(EmbeddingCreateParams params)
Creates an embedding vector representing the input text. abstract CreateEmbeddingResponse
create(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)
-
-
-
-