| 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 |
|---|---|
Request |
ConversationParam.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
Request |
SpeechSynthesisParam.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
abstract Request |
Param.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
static Request |
ServiceFacility.prepareRequest(Protocol protocol,
Param param,
WebSocketEventType eventType)
Build the message body by the protocol.
|
Request |
SubmitParam.toRequest(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
WebsocketRpc.call(Request request,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
void |
HttpRpc.post(Map<String,String> headers,
Request input)
Do post.
|
void |
HttpRpc.sse(Map<String,String> headers,
Request input)
Do sse.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebsocketRpc.call(io.reactivex.Flowable<Request> requests,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
static io.reactivex.Flowable<Response> |
ServiceFacility.streamingInAndDuplex(String url,
Map<String,String> headers,
io.reactivex.Flowable<Request> requests,
long receiveTimeout)
Call rpc on stream-in mode, only support websocket.
|
static void |
ServiceFacility.streamingInAndDuplexWithCallback(String url,
Map<String,String> headers,
io.reactivex.Flowable<Request> requests,
ResultCallback<Response> callback)
Call rpc with a callback on stream-in mode, only support websocket.
|
Copyright © 2023. All rights reserved.