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, signSts2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getAccessKey, getRegion, getSecretKey, getSessionToken, getSignUrl, json, post, proto, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2
public Audio audio()
audio
在接口中 MaasService
public Images images()
images
在接口中 MaasService
public ChatResp chat(String endpointId, ChatReq req) throws MaasException
chat
在接口中 MaasService
MaasException
public TokenizeResp tokenization(String endpointId, TokenizeReq req) throws MaasException
tokenization
在接口中 MaasService
MaasException
public ClassificationResp classification(String endpointId, ClassificationReq req) throws MaasException
classification
在接口中 MaasService
MaasException
public EmbeddingsResp embeddings(String endpointId, EmbeddingsReq req) throws MaasException
embeddings
在接口中 MaasService
MaasException
public void setApikey(String apikey)
setApikey
在接口中 MaasService
public String getApikey()
getApikey
在接口中 MaasService
public Stream<ChatResp> streamChat(String endpointId, ChatReq req) throws MaasException
streamChat
在接口中 MaasService
MaasException
protected RawResponse makeReq(String api, SignableRequest request, String apikey)
public RawResponse json(String endpointId, String api, String reqId, String body, String apikey) throws MaasException
MaasException
public String genReqId()
public org.apache.http.HttpResponse jsonWithHttpResponse(String endpointId, String api, String body, String apikey) throws MaasException
MaasException
Copyright © 2024. All rights reserved.