| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ImageSynthesisUsage.basicCall() |
static void |
TextEmbeddingUsage.basicCall() |
static void |
TextEmbeddingUsage.callWithCallback() |
static void |
ConversationManagerHistory.callWithHistoryStream()
已过时。
|
static void |
GenerationCallWithMessages.callWithMessage() |
static void |
ConversationManagerMessages.callWithMessagesStream() |
static void |
DollyUsage.dollyQuickStart() |
void |
ImageSynthesisUsage.fetchTask() |
static void |
ImageSynthesisUsage.listTask() |
static void |
ConversationQuickStart.quickStart()
已过时。
|
static void |
GenerationQuickStart.quickStartWithMessage() |
static void |
ConversationQuickStart.quickStartWithMessage() |
static void |
GenerationQuickStart.qwenQuickStart() |
static void |
GenerationQuickStart.qwenQuickStartCallback() |
void |
AudioRecognitionUsage.recognitionFile(String filePath) |
void |
AudioRecognitionUsage.recognitionRealtimeMicrophone() |
static void |
GenerationStreamCall.streamCall() |
static void |
GenerationStreamCall.streamCallWithCallback() |
static void |
ConversationStreamCall.testStreamCall() |
static void |
ChatGLMUsage.usage() |
static void |
Llama2Usage.usage() |
static void |
YuanyuUsage.usage() |
static void |
ZiyaUsage.usage() |
static void |
BelleUsage.usage() |
static void |
BiLLaUsage.usage() |
static void |
BaiChuanUsage.usage() |
static void |
MossUsage.usage() |
| 限定符和类型 | 方法和说明 |
|---|---|
ConversationResult |
Conversation.call(ConversationParam param)
Call the server to get the whole result.
|
void |
Conversation.call(ConversationParam param,
ResultCallback<ConversationResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<ConversationResult> |
Conversation.streamCall(ConversationParam param)
Call the server to get the result by stream.
|
void |
Conversation.streamCall(ConversationParam param,
ResultCallback<ConversationResult> callback)
Call the server to get the result by stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
GenerationResult |
Generation.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
void |
Generation.call(HalfDuplexServiceParam param,
ResultCallback<GenerationResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<GenerationResult> |
Generation.streamCall(HalfDuplexServiceParam param)
Call the server to get the result by stream. http and websocket.
|
void |
Generation.streamCall(HalfDuplexServiceParam param,
ResultCallback<GenerationResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
ImageSynthesisResult |
ImageSynthesis.asyncCall(ImageSynthesisParam param) |
ImageSynthesisResult |
ImageSynthesis.call(ImageSynthesisParam param)
Call the server to get the result.
|
ImageSynthesisResult |
ImageSynthesis.cancel(ImageSynthesisResult taskInfo,
String apiKey) |
ImageSynthesisResult |
ImageSynthesis.cancel(String taskId,
String apiKey) |
ImageSynthesisResult |
ImageSynthesis.fetch(ImageSynthesisResult taskInfo,
String apiKey) |
ImageSynthesisResult |
ImageSynthesis.fetch(String taskId,
String apiKey) |
ImageSynthesisListResult |
ImageSynthesis.list(AsyncTaskListParam param) |
ImageSynthesisListResult |
ImageSynthesis.list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize) |
ImageSynthesisResult |
ImageSynthesis.wait(ImageSynthesisResult taskInfo,
String apiKey) |
ImageSynthesisResult |
ImageSynthesis.wait(String taskId,
String apiKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
AsynchronousApi.asyncCall(ParamT param,
ServiceOption serviceOption)
Call async interface and return async task info.
|
DashScopeResult |
SynchronizeHalfDuplexApi.call(ParamT param)
Call the server to get the whole result.
|
void |
SynchronizeHalfDuplexApi.call(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
DashScopeResult |
AsynchronousApi.call(ParamT param,
ServiceOption serviceOption)
Call the server to get the whole result.
|
DashScopeResult |
AsynchronousApi.cancel(DashScopeResult taskInfo,
String apiKey) |
DashScopeResult |
AsynchronousApi.cancel(String taskId,
String apiKey) |
io.reactivex.Flowable<DashScopeResult> |
SynchronizeFullDuplexApi.duplexCall(ParamT param)
Call the server to get the result by stream.
|
void |
SynchronizeFullDuplexApi.duplexCall(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result by stream.
|
DashScopeResult |
AsynchronousApi.fetch(DashScopeResult taskInfo,
String apiKey) |
DashScopeResult |
AsynchronousApi.fetch(String taskId,
String apiKey)
Get the async task information, if the is completed will return the result, otherwise return
task status.
|
DashScopeResult |
AsynchronousApi.list(AsyncTaskListParam param) |
DashScopeResult |
AsynchronousApi.list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize) |
io.reactivex.Flowable<DashScopeResult> |
SynchronizeHalfDuplexApi.streamCall(ParamT param)
Call the server to get the result by stream.
|
void |
SynchronizeHalfDuplexApi.streamCall(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result by stream.
|
DashScopeResult |
SynchronizeFullDuplexApi.streamIn(ParamT param)
Call the server to get the whole result.
|
void |
SynchronizeFullDuplexApi.streamIn(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
DashScopeResult |
AsynchronousApi.wait(DashScopeResult taskInfo,
String apiKey) |
DashScopeResult |
AsynchronousApi.wait(String taskId,
String apiKey)
Wait for async task completed and return task result.
|
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<RecognitionResult> |
Recognition.streamCall(RecognitionParam param,
io.reactivex.Flowable<ByteBuffer> audioFrame) |
| 限定符和类型 | 方法和说明 |
|---|---|
TextEmbeddingResult |
TextEmbedding.call(TextEmbeddingParam param)
Call the server to get the whole result, only http protocol
|
void |
TextEmbedding.call(TextEmbeddingParam param,
ResultCallback<TextEmbeddingResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
DashScopeHeaders.buildHttpHeaders(String apiKey,
Boolean isSecurityCheck,
Protocol protocol,
Boolean isSSE,
Boolean isAsyncTask) |
static Map<String,String> |
DashScopeHeaders.buildWebSocketHeaders(String apiKey,
boolean isSecurityCheck) |
io.reactivex.Flowable<DashScopeResult> |
FullDuplexClient.duplex(FullDuplexRequest req) |
void |
FullDuplexClient.duplex(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
HttpRequest |
HalfDuplexRequest.getHttpRequest() |
DashScopeResult |
HalfDuplexClient.send(HalfDuplexRequest req)
Blocking send http request and get the response body.
|
void |
HalfDuplexClient.send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult |
FullDuplexClient.streamIn(FullDuplexRequest req) |
void |
FullDuplexClient.streamIn(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
HalfDuplexClient.streamOut(HalfDuplexRequest req) |
void |
HalfDuplexClient.streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<DashScopeResult> |
OkHttpWebSocketClient.duplex(FullDuplexRequest req) |
void |
OkHttpWebSocketClient.duplex(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult |
OkHttpHttpClient.send(HalfDuplexRequest req) |
void |
OkHttpHttpClient.send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
void |
OkHttpWebSocketClient.streamIn(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
OkHttpHttpClient.streamOut(HalfDuplexRequest req) |
void |
OkHttpHttpClient.streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
GeneralHalfDuplexApi.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
void |
GeneralHalfDuplexApi.call(HalfDuplexServiceParam param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
static String |
ApiKey.getApiKey(String apiKey) |
io.reactivex.Flowable<DashScopeResult> |
GeneralHalfDuplexApi.streamCall(HalfDuplexServiceParam param)
Call the server to get the result by stream. http and websocket.
|
void |
GeneralHalfDuplexApi.streamCall(HalfDuplexServiceParam param,
ResultCallback<DashScopeResult> callback) |
Copyright © 2023. All rights reserved.