Abstract helperclass to call the ollama api server.
Definition at line 17 of file OllamaEndpointCaller.java.
◆ OllamaEndpointCaller()
io.github.ollama4j.models.request.OllamaEndpointCaller.OllamaEndpointCaller |
( |
String | host, |
|
|
Auth | auth, |
|
|
long | requestTimeoutSeconds, |
|
|
boolean | verbose ) |
◆ getEndpointSuffix()
abstract String io.github.ollama4j.models.request.OllamaEndpointCaller.getEndpointSuffix |
( |
| ) |
|
|
abstractprotected |
◆ getRequestBuilderDefault()
HttpRequest.Builder io.github.ollama4j.models.request.OllamaEndpointCaller.getRequestBuilderDefault |
( |
URI | uri | ) |
|
|
protected |
Get default request builder.
- Parameters
-
uri | URI to get a HttpRequest.Builder |
- Returns
- HttpRequest.Builder
Definition at line 44 of file OllamaEndpointCaller.java.
◆ isAuthCredentialsSet()
boolean io.github.ollama4j.models.request.OllamaEndpointCaller.isAuthCredentialsSet |
( |
| ) |
|
|
protected |
◆ parseResponseAndAddToBuffer()
abstract boolean io.github.ollama4j.models.request.OllamaEndpointCaller.parseResponseAndAddToBuffer |
( |
String | line, |
|
|
StringBuilder | responseBuffer, |
|
|
StringBuilder | thinkingBuffer ) |
|
abstractprotected |
The documentation for this class was generated from the following file: