public class MaasServiceImpl extends BaseServiceImpl implements MaasService
apiInfoList, credentials, ISigner, serviceInfo| Constructor and Description |
|---|
MaasServiceImpl(String host,
String region) |
MaasServiceImpl(String host,
String region,
int connectionTimeout,
int socketTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Api.ChatResp |
chat(Api.ChatReq req) |
Api.ClassificationResp |
classification(Api.ClassificationReq req) |
Api.EmbeddingsResp |
embeddings(Api.EmbeddingsReq req) |
Stream<Api.ChatResp> |
streamChat(Api.ChatReq req) |
Api.TokenizeResp |
tokenization(Api.TokenizeReq req) |
destroy, getAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSessionToken, getSignUrl, json, makeRequest, post, postDataWithResponse, postFileMultiPart, prepareRequest, proto, put, putData, putData, putDataWithResponse, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getAccessKey, getRegion, getSecretKey, getSessionToken, getSignUrl, json, post, proto, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2public Api.ChatResp chat(Api.ChatReq req) throws MaasException
chat in interface MaasServiceMaasExceptionpublic Stream<Api.ChatResp> streamChat(Api.ChatReq req) throws MaasException
streamChat in interface MaasServiceMaasExceptionpublic Api.TokenizeResp tokenization(Api.TokenizeReq req) throws MaasException
tokenization in interface MaasServiceMaasExceptionpublic Api.ClassificationResp classification(Api.ClassificationReq req) throws MaasException
classification in interface MaasServiceMaasExceptionpublic Api.EmbeddingsResp embeddings(Api.EmbeddingsReq req) throws MaasException
embeddings in interface MaasServiceMaasExceptionCopyright © 2025. All rights reserved.