public class MaasServiceImpl extends BaseServiceImpl implements MaasService
apiInfoList, credentials, ISigner, serviceInfo| 构造器和说明 |
|---|
MaasServiceImpl(String host,
String region) |
MaasServiceImpl(String host,
String region,
int connectionTimeout,
int socketTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 MaasServiceMaasExceptionpublic Stream<Api.ChatResp> streamChat(Api.ChatReq req) throws MaasException
streamChat 在接口中 MaasServiceMaasExceptionpublic Api.TokenizeResp tokenization(Api.TokenizeReq req) throws MaasException
tokenization 在接口中 MaasServiceMaasExceptionpublic Api.ClassificationResp classification(Api.ClassificationReq req) throws MaasException
classification 在接口中 MaasServiceMaasExceptionpublic Api.EmbeddingsResp embeddings(Api.EmbeddingsReq req) throws MaasException
embeddings 在接口中 MaasServiceMaasExceptionCopyright © 2025. All rights reserved.