Class HttpCommunicationChatGPT
java.lang.Object
org.eclnt.ccee.chatgpt.logic.http.HttpCommunicationChatGPT
- All Implemented Interfaces:
ICCEEConstants
-
Field Summary
Fields inherited from interface org.eclnt.ccee.ICCEEConstants
AND, ASC, AVG, BETWEEN, BRC, BRO, COUNT, DEFAULT_CONTEXT, DESC, FUNCTIONRESULT, GREATER, GREATEREQUAL, IN, IS, ISNOT, LIKE, LL_DBG, LL_ERR, LL_INF, LL_WAR, LOWER, LOWEREQUAL, MAX, MIN, NULL, OR, ORDERBY, QPFUNCTION_LOWER, QPFUNCTION_UPPER, SUM -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPostWithStreamResponse(String uri, String body, Map<String, String> headers, org.eclnt.util.general.IExecuteOnObject<String> fragmentExecutor) booleanstatic HttpCommunicationChatGPTinstance()byte[]readURLByteArray(String url) voidsetOpenAiApiKey(String openAiApiKey) voidsetOpenAiCompany(String openAiCompany) voidsetOpenAiProjectId(String openAiProjectId) voidsetWithCommunicationProtocol(boolean withCommunicationProtocol) protected void
-
Method Details
-
instance
-
getOpenAiCompany
-
setOpenAiCompany
-
getOpenAiProjectId
-
setOpenAiProjectId
-
getOpenAiApiKey
-
setOpenAiApiKey
-
getWithCommunicationProtocol
public boolean getWithCommunicationProtocol() -
setWithCommunicationProtocol
public void setWithCommunicationProtocol(boolean withCommunicationProtocol) -
readURLByteArray
-
doGet
-
doPost
-
doPostWithStreamResponse
-
checkOpenAiConfiguration
protected void checkOpenAiConfiguration() -
updateAiApiFromConfiguration
protected void updateAiApiFromConfiguration()
-