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 |
|---|---|
Audio |
audio() |
ChatResp |
chat(String endpointId,
ChatReq req) |
ClassificationResp |
classification(String endpointId,
ClassificationReq req) |
EmbeddingsResp |
embeddings(String endpointId,
EmbeddingsReq req) |
String |
genReqId() |
String |
getApikey() |
Images |
images() |
RawResponse |
json(String endpointId,
String api,
String reqId,
String body,
String apikey) |
org.apache.http.HttpResponse |
jsonWithHttpResponse(String endpointId,
String api,
String body,
String apikey) |
protected RawResponse |
makeReq(String api,
SignableRequest request,
String apikey) |
void |
setApikey(String apikey) |
Stream<ChatResp> |
streamChat(String endpointId,
ChatReq req) |
TokenizeResp |
tokenization(String endpointId,
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 Audio audio()
audio in interface MaasServicepublic Images images()
images in interface MaasServicepublic ChatResp chat(String endpointId, ChatReq req) throws MaasException
chat in interface MaasServiceMaasExceptionpublic TokenizeResp tokenization(String endpointId, TokenizeReq req) throws MaasException
tokenization in interface MaasServiceMaasExceptionpublic ClassificationResp classification(String endpointId, ClassificationReq req) throws MaasException
classification in interface MaasServiceMaasExceptionpublic EmbeddingsResp embeddings(String endpointId, EmbeddingsReq req) throws MaasException
embeddings in interface MaasServiceMaasExceptionpublic void setApikey(String apikey)
setApikey in interface MaasServicepublic String getApikey()
getApikey in interface MaasServicepublic Stream<ChatResp> streamChat(String endpointId, ChatReq req) throws MaasException
streamChat in interface MaasServiceMaasExceptionprotected RawResponse makeReq(String api, SignableRequest request, String apikey)
public RawResponse json(String endpointId, String api, String reqId, String body, String apikey) throws MaasException
MaasExceptionpublic String genReqId()
public org.apache.http.HttpResponse jsonWithHttpResponse(String endpointId, String api, String body, String apikey) throws MaasException
MaasExceptionCopyright © 2025. All rights reserved.