![]() |
Ollama4j
A Java library (wrapper/binding) for Ollama server.
|
Public Member Functions | |
OllamaEndpointCaller (String host, Auth auth, long requestTimeoutSeconds, boolean verbose) | |
Protected Member Functions | |
abstract String | getEndpointSuffix () |
abstract boolean | parseResponseAndAddToBuffer (String line, StringBuilder responseBuffer) |
HttpRequest.Builder | getRequestBuilderDefault (URI uri) |
boolean | isAuthCredentialsSet () |
Abstract helperclass to call the ollama api server.
Definition at line 17 of file OllamaEndpointCaller.java.
io.github.ollama4j.models.request.OllamaEndpointCaller.OllamaEndpointCaller | ( | String | host, |
Auth | auth, | ||
long | requestTimeoutSeconds, | ||
boolean | verbose ) |
Definition at line 26 of file OllamaEndpointCaller.java.
|
abstractprotected |
|
protected |
Get default request builder.
uri | URI to get a HttpRequest.Builder |
Definition at line 44 of file OllamaEndpointCaller.java.
|
protected |
Check if Auth credentials set.
Definition at line 60 of file OllamaEndpointCaller.java.
|
abstractprotected |