Class TextEmbedding
java.lang.Object
com.alibaba.dashscope.legacy_2x.embeddings.TextEmbedding
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(TextEmbeddingParam param) Deprecated.Call the server to get the whole result, only http protocolvoidcall(TextEmbeddingParam param, ResultCallback<TextEmbeddingResult> callback) Deprecated.Call the server to get the result in the callback function.
-
Constructor Details
-
TextEmbedding
public TextEmbedding()Deprecated. -
TextEmbedding
Deprecated.
-
-
Method Details
-
call
public void call(TextEmbeddingParam param, ResultCallback<TextEmbeddingResult> callback) throws ApiException, NoApiKeyException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `GenerationParam`.callback- The callback to receive response, the template class is `GenerationResult`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-
call
Deprecated.Call the server to get the whole result, only http protocol- Parameters:
param- The input param of class `ConversationParam`.- Returns:
- The output structure of `QWenConversationResult`.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.
-