Class Generation
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.generation.Generation
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Generation(String protocol) Deprecated.Generation(String protocol, String baseUrl) Deprecated.Generation(String protocol, String baseUrl, ConnectionOptions connectionOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncall(HalfDuplexServiceParam param) Deprecated.Call the server to get the whole result, only http protocolvoidcall(HalfDuplexServiceParam param, ResultCallback<GenerationResult> callback) Deprecated.Call the server to get the result in the callback function.io.reactivex.Flowable<GenerationResult>streamCall(HalfDuplexServiceParam param) Deprecated.Call the server to get the result by stream. http and websocket.voidstreamCall(HalfDuplexServiceParam param, ResultCallback<GenerationResult> callback) Deprecated.
-
Constructor Details
-
Generation
public Generation()Deprecated. -
Generation
Deprecated. -
Generation
Deprecated. -
Generation
Deprecated.
-
-
Method Details
-
call
public GenerationResult call(HalfDuplexServiceParam param) throws ApiException, NoApiKeyException, InputRequiredException 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 keyInputRequiredException- Missing inputs.ApiException
-
call
public void call(HalfDuplexServiceParam param, ResultCallback<GenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException 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.InputRequiredException- Missing inputs.
-
streamCall
public io.reactivex.Flowable<GenerationResult> streamCall(HalfDuplexServiceParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream. http and websocket.- Parameters:
param- The input param of class `ConversationParam`.- Returns:
- A `Flowable` of the output structure.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-
streamCall
public void streamCall(HalfDuplexServiceParam param, ResultCallback<GenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.
-