public interface HalfDuplexClient
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
send(HalfDuplexRequest req)
Blocking send http request and get the response body.
|
void |
send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
streamOut(HalfDuplexRequest req) |
void |
streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult send(HalfDuplexRequest req) throws NoApiKeyException, ApiException
req - the user input data and parameters.NoApiKeyException - Can not find api keyApiException - The request failed, possibly due to a network or data error.void send(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException
io.reactivex.Flowable<DashScopeResult> streamOut(HalfDuplexRequest req) throws NoApiKeyException, ApiException
void streamOut(HalfDuplexRequest req, ResultCallback<DashScopeResult> callback) throws NoApiKeyException, ApiException
Copyright © 2024. All rights reserved.