init
This commit is contained in:
@@ -16,8 +16,6 @@ docker run -v ~/ollama:/root/.ollama -p 11434:11434 ollama/ollama
|
||||
Submit a question to Ollama using Ollama4j:
|
||||
|
||||
```java
|
||||
public class Test {
|
||||
public static void main(String[] args) throws Exception {
|
||||
String host = "http://localhost:11434/";
|
||||
|
||||
OllamaAPI ollamaAPI = new OllamaAPI(host);
|
||||
@@ -32,8 +30,6 @@ public class Test {
|
||||
}
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You'd then get a response from Ollama:
|
||||
|
||||
Reference in New Issue
Block a user