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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 MaasServicepublic Images images()
images 在接口中 MaasServicepublic ChatResp chat(String endpointId, ChatReq req) throws MaasException
chat 在接口中 MaasServiceMaasExceptionpublic TokenizeResp tokenization(String endpointId, TokenizeReq req) throws MaasException
tokenization 在接口中 MaasServiceMaasExceptionpublic ClassificationResp classification(String endpointId, ClassificationReq req) throws MaasException
classification 在接口中 MaasServiceMaasExceptionpublic EmbeddingsResp embeddings(String endpointId, EmbeddingsReq req) throws MaasException
embeddings 在接口中 MaasServiceMaasExceptionpublic void setApikey(String apikey)
setApikey 在接口中 MaasServicepublic String getApikey()
getApikey 在接口中 MaasServicepublic Stream<ChatResp> streamChat(String endpointId, ChatReq req) throws MaasException
streamChat 在接口中 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.