| Package | Description |
|---|---|
| com.alibaba.dashscope.aigc.conversation | |
| com.alibaba.dashscope.aigc.conversation.qwen | |
| com.alibaba.dashscope.audio.tts | |
| com.alibaba.dashscope.protocol |
| Modifier and Type | Class and Description |
|---|---|
class |
ConversationParam |
| Modifier and Type | Class and Description |
|---|---|
class |
QWenConversationParam |
| Modifier and Type | Class and Description |
|---|---|
class |
SpeechSynthesisParam |
| Modifier and Type | Class and Description |
|---|---|
class |
SubmitParam |
| 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.
|
static Result |
ServiceFacility.callAndWait(Map<String,String> extraHeaders,
Param param,
HttpMethod method,
long receiveTimeout)
Call the network to do async task submitting and queries.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static com.alibaba.dashscope.protocol.ServiceFacility.WsParam |
ServiceFacility.prepareWsParams(io.reactivex.Flowable<Param> params)
Add start-task and finish-task to the input stream.
|
static io.reactivex.Flowable<Result> |
ServiceFacility.streamCall(Map<String,String> extraHeaders,
io.reactivex.Flowable<Param> params,
long receiveTimeout)
Call the network to do a stream-in, stream-out request.
|
static void |
ServiceFacility.streamCall(Map<String,String> extraHeaders,
io.reactivex.Flowable<Param> params,
ResultCallback<Result> resultCallback)
Call the network to do a single-in, stream-out request via a callback.
|
Copyright © 2023. All rights reserved.