Class HttpCommunicationChatGPT

java.lang.Object
org.eclnt.ccee.chatgpt.logic.http.HttpCommunicationChatGPT
All Implemented Interfaces:
ICCEEConstants

public class HttpCommunicationChatGPT extends Object implements ICCEEConstants
  • Method Details

    • instance

      public static HttpCommunicationChatGPT instance()
    • getOpenAiCompany

      public String getOpenAiCompany()
    • setOpenAiCompany

      public void setOpenAiCompany(String openAiCompany)
    • getOpenAiProjectId

      public String getOpenAiProjectId()
    • setOpenAiProjectId

      public void setOpenAiProjectId(String openAiProjectId)
    • getOpenAiApiKey

      public String getOpenAiApiKey()
    • setOpenAiApiKey

      public void setOpenAiApiKey(String openAiApiKey)
    • getWithCommunicationProtocol

      public boolean getWithCommunicationProtocol()
    • setWithCommunicationProtocol

      public void setWithCommunicationProtocol(boolean withCommunicationProtocol)
    • readURLByteArray

      public byte[] readURLByteArray(String url)
    • doGet

      public String doGet(String uri, Map<String,String> headers)
    • doPost

      public String doPost(String uri, String body, Map<String,String> headers)
    • doPostWithStreamResponse

      public String doPostWithStreamResponse(String uri, String body, Map<String,String> headers, org.eclnt.util.general.IExecuteOnObject<String> fragmentExecutor)
    • checkOpenAiConfiguration

      protected void checkOpenAiConfiguration()
    • updateAiApiFromConfiguration

      protected void updateAiApiFromConfiguration()