Class HttpCommunicationChatBase
java.lang.Object
org.eclnt.ccee.prompting.ollama.http.HttpCommunicationChatBase
- Direct Known Subclasses:
HttpCommunicationChatOllama,HttpCommunicationChromaDB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]readURLByteArray(String url) Synchronous reading of URL.protected StringsendRequest(String url, String body, Map<String, String> headers, boolean asPost, boolean inFragments, org.eclnt.util.general.IExecuteOnObject<String> executor) More sophisticated calling...protected voidwriteCommunicationProtocol(boolean isRequest, String url, String request)
-
Constructor Details
-
HttpCommunicationChatBase
-
-
Method Details
-
readURLByteArray
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
-