Package com.datastax.astra.client.auth
Class EmbeddingAPIKeyHeaderProvider
java.lang.Object
com.datastax.astra.client.auth.EmbeddingAPIKeyHeaderProvider
- All Implemented Interfaces:
EmbeddingHeadersProvider
Default header when working with an embedding service provider.
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
Headers param with the embedding ApiKey when dealing with a embedding service provider. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild the Header for this provider.
-
Field Details
-
HEADER_EMBEDDING_API_KEY
Headers param with the embedding ApiKey when dealing with a embedding service provider.
-
-
Constructor Details
-
EmbeddingAPIKeyHeaderProvider
Constructor.- Parameters:
apiKey
- the apiKey to use for the embedding provider.
-
-
Method Details
-
getHeaders
Build the Header for this provider.- Specified by:
getHeaders
in interfaceEmbeddingHeadersProvider
- Returns:
- headers to use for the embedding provider.
-