Class HttpCommunicationChatBase

java.lang.Object
org.eclnt.ccee.prompting.ollama.http.HttpCommunicationChatBase
Direct Known Subclasses:
HttpCommunicationChatOllama, HttpCommunicationChromaDB

public class HttpCommunicationChatBase extends Object
  • Constructor Details

  • Method Details

    • readURLByteArray

      protected byte[] readURLByteArray(String url)
      Synchronous reading of URL.
    • sendRequest

      protected String sendRequest(String url, String body, Map<String,String> headers, boolean asPost, boolean inFragments, org.eclnt.util.general.IExecuteOnObject<String> executor)
      More sophisticated calling...
      Parameters:
      url -
      body -
      headers -
      asPost -
      inFragments - Response is not collected an sent back in one chunk but is sent as soon as it is available. If defining true then the parameter executor must be defined.
      executor - Interface to the listener of fragments.
      Returns:
    • writeCommunicationProtocol

      protected void writeCommunicationProtocol(boolean isRequest, String url, String request)