Class BatchTextEmbedding
java.lang.Object
com.alibaba.dashscope.legacy_2x.embeddings.BatchTextEmbedding
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasyncCall(BatchTextEmbeddingParam param) Deprecated.call(BatchTextEmbeddingParam param) Deprecated.Call the server and wait for the task finished.cancel(BatchTextEmbeddingResult taskInfo, String apiKey) Deprecated.Deprecated.fetch(BatchTextEmbeddingResult taskInfo, String apiKey) Deprecated.Deprecated.list(AsyncTaskListParam param) Deprecated.list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) Deprecated.wait(BatchTextEmbeddingResult taskInfo, String apiKey) Deprecated.Deprecated.
-
Constructor Details
-
BatchTextEmbedding
public BatchTextEmbedding()Deprecated. -
BatchTextEmbedding
Deprecated.
-
-
Method Details
-
call
public BatchTextEmbeddingResult call(BatchTextEmbeddingParam param) throws ApiException, NoApiKeyException Deprecated.Call the server and wait for the task finished.- Parameters:
param- The input param of class `AsyncTextEmbeddingParam`.- Returns:
- The output structure of `AsyncTextEmbeddingResult`.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-
asyncCall
public BatchTextEmbeddingResult asyncCall(BatchTextEmbeddingParam param) throws ApiException, NoApiKeyException Deprecated.- Parameters:
param- The async embedding request parameter, class `AsyncTextEmbeddingParam`- Returns:
- The async task information of `AsyncTextEmbeddingResult`
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-
list
Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
list
public AsyncTaskListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public BatchTextEmbeddingResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public BatchTextEmbeddingResult fetch(BatchTextEmbeddingResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public BatchTextEmbeddingResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public BatchTextEmbeddingResult cancel(BatchTextEmbeddingResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public BatchTextEmbeddingResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public BatchTextEmbeddingResult wait(BatchTextEmbeddingResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-