forked from Mirror/ollama4j
20 lines
326 B
Markdown
20 lines
326 B
Markdown
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
# Ping
|
|
|
|
This API lets you check the reachability of Ollama server.
|
|
|
|
```java
|
|
public class Main {
|
|
|
|
public static void main(String[] args) {
|
|
String host = "http://localhost:11434/";
|
|
|
|
OllamaAPI ollamaAPI = new OllamaAPI(host);
|
|
|
|
ollamaAPI.ping();
|
|
}
|
|
}
|
|
``` |