public class InferenceApi
extends java.lang.Object
| Constructor and Description |
|---|
InferenceApi() |
InferenceApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
EmbeddingsList |
embed(EmbedRequest embedRequest)
Embed data
Generate embeddings for input data
|
okhttp3.Call |
embedAsync(EmbedRequest embedRequest,
ApiCallback<EmbeddingsList> _callback)
Embed data (asynchronously)
Generate embeddings for input data
|
okhttp3.Call |
embedCall(EmbedRequest embedRequest,
ApiCallback _callback)
Build call for embed
|
ApiResponse<EmbeddingsList> |
embedWithHttpInfo(EmbedRequest embedRequest)
Embed data
Generate embeddings for input data
|
ApiClient |
getApiClient() |
java.lang.String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(java.lang.String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public InferenceApi()
public InferenceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public java.lang.String getCustomBaseUrl()
public void setCustomBaseUrl(java.lang.String customBaseUrl)
public okhttp3.Call embedCall(EmbedRequest embedRequest, ApiCallback _callback) throws ApiException
embedRequest - Generate embeddings for inputs (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 401 | Unauthorized. Possible causes: Invalid API key. | - |
| 500 | Internal server error. | - |
public EmbeddingsList embed(EmbedRequest embedRequest) throws ApiException
embedRequest - Generate embeddings for inputs (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 401 | Unauthorized. Possible causes: Invalid API key. | - |
| 500 | Internal server error. | - |
public ApiResponse<EmbeddingsList> embedWithHttpInfo(EmbedRequest embedRequest) throws ApiException
embedRequest - Generate embeddings for inputs (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 401 | Unauthorized. Possible causes: Invalid API key. | - |
| 500 | Internal server error. | - |
public okhttp3.Call embedAsync(EmbedRequest embedRequest, ApiCallback<EmbeddingsList> _callback) throws ApiException
embedRequest - Generate embeddings for inputs (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. The request body included invalid request parameters. | - |
| 401 | Unauthorized. Possible causes: Invalid API key. | - |
| 500 | Internal server error. | - |