mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 11:57:12 +02:00
init
This commit is contained in:
parent
4a536139e8
commit
a12c4c7c49
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user