Class TextEmbeddingsInferenceApi
- java.lang.Object
-
- llmjava.hf_text_embeddings.client.TextEmbeddingsInferenceApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-12-04T22:31:14.792592Z[Etc/UTC]") public class TextEmbeddingsInferenceApi extends Object
-
-
Constructor Summary
Constructors Constructor Description TextEmbeddingsInferenceApi()TextEmbeddingsInferenceApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<Float>>embed(EmbedRequest embedRequest)Get Embeddings Get EmbeddingsApiResponse<List<List<Float>>>embedWithHttpInfo(EmbedRequest embedRequest)Get Embeddings Get Embeddingsprotected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response)InfogetModelInfo()Text Embeddings Inference endpoint info Text Embeddings Inference endpoint infoApiResponse<Info>getModelInfoWithHttpInfo()Text Embeddings Inference endpoint info Text Embeddings Inference endpoint infovoidhealth()Health check method Health check methodApiResponse<Void>healthWithHttpInfo()Health check method Health check methodStringmetrics()Prometheus metrics scrape endpoint Prometheus metrics scrape endpointApiResponse<String>metricsWithHttpInfo()Prometheus metrics scrape endpoint Prometheus metrics scrape endpointOpenAICompatResponseopenaiEmbed(OpenAICompatRequest openAICompatRequest)OpenAI compatible route OpenAI compatible routeApiResponse<OpenAICompatResponse>openaiEmbedWithHttpInfo(OpenAICompatRequest openAICompatRequest)OpenAI compatible route OpenAI compatible route
-
-
-
Constructor Detail
-
TextEmbeddingsInferenceApi
public TextEmbeddingsInferenceApi()
-
TextEmbeddingsInferenceApi
public TextEmbeddingsInferenceApi(ApiClient apiClient)
-
-
Method Detail
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
- Throws:
IOException
-
embed
public List<List<Float>> embed(EmbedRequest embedRequest) throws ApiException
Get Embeddings Get Embeddings- Parameters:
embedRequest- (required)- Returns:
- List<List<Float>>
- Throws:
ApiException- if fails to make API call
-
embedWithHttpInfo
public ApiResponse<List<List<Float>>> embedWithHttpInfo(EmbedRequest embedRequest) throws ApiException
Get Embeddings Get Embeddings- Parameters:
embedRequest- (required)- Returns:
- ApiResponse<List<List<Float>>>
- Throws:
ApiException- if fails to make API call
-
getModelInfo
public Info getModelInfo() throws ApiException
Text Embeddings Inference endpoint info Text Embeddings Inference endpoint info- Returns:
- Info
- Throws:
ApiException- if fails to make API call
-
getModelInfoWithHttpInfo
public ApiResponse<Info> getModelInfoWithHttpInfo() throws ApiException
Text Embeddings Inference endpoint info Text Embeddings Inference endpoint info- Returns:
- ApiResponse<Info>
- Throws:
ApiException- if fails to make API call
-
health
public void health() throws ApiExceptionHealth check method Health check method- Throws:
ApiException- if fails to make API call
-
healthWithHttpInfo
public ApiResponse<Void> healthWithHttpInfo() throws ApiException
Health check method Health check method- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call
-
metrics
public String metrics() throws ApiException
Prometheus metrics scrape endpoint Prometheus metrics scrape endpoint- Returns:
- String
- Throws:
ApiException- if fails to make API call
-
metricsWithHttpInfo
public ApiResponse<String> metricsWithHttpInfo() throws ApiException
Prometheus metrics scrape endpoint Prometheus metrics scrape endpoint- Returns:
- ApiResponse<String>
- Throws:
ApiException- if fails to make API call
-
openaiEmbed
public OpenAICompatResponse openaiEmbed(OpenAICompatRequest openAICompatRequest) throws ApiException
OpenAI compatible route OpenAI compatible route- Parameters:
openAICompatRequest- (required)- Returns:
- OpenAICompatResponse
- Throws:
ApiException- if fails to make API call
-
openaiEmbedWithHttpInfo
public ApiResponse<OpenAICompatResponse> openaiEmbedWithHttpInfo(OpenAICompatRequest openAICompatRequest) throws ApiException
OpenAI compatible route OpenAI compatible route- Parameters:
openAICompatRequest- (required)- Returns:
- ApiResponse<OpenAICompatResponse>
- Throws:
ApiException- if fails to make API call
-
-