public interface MaasService extends IBaseService
| 限定符和类型 | 方法和说明 |
|---|---|
ChatResp |
chat(String endpointId,
ChatReq req) |
ClassificationResp |
classification(String endpointId,
ClassificationReq req) |
EmbeddingsResp |
embeddings(String endpointId,
EmbeddingsReq req) |
Stream<ChatResp> |
streamChat(String endpointId,
ChatReq req) |
TokenizeResp |
tokenization(String endpointId,
TokenizeReq req) |
destroy, getAccessKey, getRegion, getSecretKey, getSessionToken, getSignUrl, json, post, proto, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2ChatResp chat(String endpointId, ChatReq req) throws MaasException
MaasExceptionStream<ChatResp> streamChat(String endpointId, ChatReq req) throws MaasException
MaasExceptionTokenizeResp tokenization(String endpointId, TokenizeReq req) throws MaasException
MaasExceptionClassificationResp classification(String endpointId, ClassificationReq req) throws MaasException
MaasExceptionEmbeddingsResp embeddings(String endpointId, EmbeddingsReq req) throws MaasException
MaasExceptionCopyright © 2024. All rights reserved.