Abstract helperclass to call the ollama api server.
Definition at line 29 of file OllamaEndpointCaller.java.
◆ OllamaEndpointCaller()
io.github.ollama4j.models.request.OllamaEndpointCaller.OllamaEndpointCaller |
( |
String | host, |
|
|
BasicAuth | basicAuth, |
|
|
long | requestTimeoutSeconds, |
|
|
boolean | verbose ) |
◆ getBasicAuthHeaderValue()
String io.github.ollama4j.models.request.OllamaEndpointCaller.getBasicAuthHeaderValue |
( |
| ) |
|
|
protected |
Get basic authentication header value.
- Returns
- basic authentication header value (encoded credentials)
Definition at line 72 of file OllamaEndpointCaller.java.
◆ 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 56 of file OllamaEndpointCaller.java.
◆ isBasicAuthCredentialsSet()
boolean io.github.ollama4j.models.request.OllamaEndpointCaller.isBasicAuthCredentialsSet |
( |
| ) |
|
|
protected |
Check if Basic Auth credentials set.
- Returns
- true when Basic Auth credentials set
Definition at line 82 of file OllamaEndpointCaller.java.
◆ parseResponseAndAddToBuffer()
abstract boolean io.github.ollama4j.models.request.OllamaEndpointCaller.parseResponseAndAddToBuffer |
( |
String | line, |
|
|
StringBuilder | responseBuffer ) |
|
abstractprotected |
The documentation for this class was generated from the following file: