| Package | Description |
|---|---|
| com.alibaba.dashscope.aigc.conversation | |
| com.alibaba.dashscope.audio.tts | |
| com.alibaba.dashscope.common | |
| com.alibaba.dashscope.protocol |
| Modifier and Type | Method and Description |
|---|---|
void |
ConversationResult.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
Request |
ConversationParam.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
SpeechSynthesisResult.fromResponse(Protocol protocol,
Response response) |
Request |
SpeechSynthesisParam.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Protocol.of(String value) |
static Protocol |
Protocol.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
Protocol.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Result.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
abstract Request |
Param.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
static Result |
ServiceFacility.call(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
HttpMethod method,
long receiveTimeout)
Call the network to do a single-in, single-out request.
|
void |
SubmitResult.fromResponse(Protocol protocol,
Response response) |
static Map<String,String> |
ServiceFacility.prepareHeaders(Protocol protocol,
Param param)
Prepare common headers.
|
static Request |
ServiceFacility.prepareRequest(Protocol protocol,
Param param,
WebSocketEventType eventType)
Build the message body by the protocol.
|
static Result |
ServiceFacility.prepareResult(Protocol protocol,
Param param,
Response res)
Prepare the Result by the response and the input param.
|
static String |
ServiceFacility.prepareUrl(Protocol protocol,
Param param)
Prepare the connecting url.
|
static io.reactivex.Flowable<Result> |
ServiceFacility.streamCall(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
long receiveTimeout)
Call the network to do a single-in, stream-out request.
|
static Response |
ServiceFacility.streamingNone(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
long receiveTimeout)
Call rpc on single-in, single-out mode
|
static io.reactivex.Flowable<Response> |
ServiceFacility.streamingOut(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
long receiveTimeout)
Call rpc on single-in, stream-out mode
|
static void |
ServiceFacility.streamingOutWithCallback(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
ResultCallback<Response> callback)
Call rpc on single-in mode with a callback.
|
Request |
SubmitParam.toRequest(Protocol protocol) |
Copyright © 2023. All rights reserved.