Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
OllamaGenerateEndpointCaller (String host, BasicAuth basicAuth, long requestTimeoutSeconds, boolean verbose) | |
OllamaResult | call (OllamaRequestBody body, OllamaStreamHandler streamHandler) throws OllamaBaseException, IOException, InterruptedException |
Public Member Functions inherited from io.github.ollama4j.models.request.OllamaEndpointCaller | |
OllamaEndpointCaller (String host, BasicAuth basicAuth, long requestTimeoutSeconds, boolean verbose) | |
OllamaResult | callSync (OllamaRequestBody body) throws OllamaBaseException, IOException, InterruptedException |
Protected Member Functions | |
String | getEndpointSuffix () |
boolean | parseResponseAndAddToBuffer (String line, StringBuilder responseBuffer) |
Protected Member Functions inherited from io.github.ollama4j.models.request.OllamaEndpointCaller |
Definition at line 16 of file OllamaGenerateEndpointCaller.java.
io.github.ollama4j.models.request.OllamaGenerateEndpointCaller.OllamaGenerateEndpointCaller | ( | String | host, |
BasicAuth | basicAuth, | ||
long | requestTimeoutSeconds, | ||
boolean | verbose ) |
Definition at line 22 of file OllamaGenerateEndpointCaller.java.
OllamaResult io.github.ollama4j.models.request.OllamaGenerateEndpointCaller.call | ( | OllamaRequestBody | body, |
OllamaStreamHandler | streamHandler ) throws OllamaBaseException, IOException, InterruptedException |
Definition at line 46 of file OllamaGenerateEndpointCaller.java.
|
protected |
Reimplemented from io.github.ollama4j.models.request.OllamaEndpointCaller.
Definition at line 27 of file OllamaGenerateEndpointCaller.java.
|
protected |
Reimplemented from io.github.ollama4j.models.request.OllamaEndpointCaller.
Definition at line 32 of file OllamaGenerateEndpointCaller.java.