Ping
This API lets you check the reachability of Ollama server.
import io.github.ollama4j.Ollama;
public class Main {
public static void main(String[] args) {
String host = "http://localhost:11434/";
Ollama ollama = new Ollama(host);
ollama.ping();
}
}