Class OllamaChatEndpointCaller
java.lang.Object
io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
io.github.amithkoujalgi.ollama4j.core.models.request.OllamaChatEndpointCaller
Specialization class for requests
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaChatEndpointCaller
(String host, BasicAuth basicAuth, long requestTimeoutSeconds, boolean verbose) -
Method Summary
Modifier and TypeMethodDescriptioncall
(OllamaRequestBody body, OllamaStreamHandler streamHandler) protected String
protected boolean
parseResponseAndAddToBuffer
(String line, StringBuilder responseBuffer) Methods inherited from class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
callSync
-
Constructor Details
-
OllamaChatEndpointCaller
-
-
Method Details
-
getEndpointSuffix
- Specified by:
getEndpointSuffix
in classOllamaEndpointCaller
-
parseResponseAndAddToBuffer
- Specified by:
parseResponseAndAddToBuffer
in classOllamaEndpointCaller
-
call
public OllamaResult call(OllamaRequestBody body, OllamaStreamHandler streamHandler) throws OllamaBaseException, IOException, InterruptedException
-