mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-11-03 10:00:41 +01:00
init
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
package io.github.amithkoujalgi.ollama4j;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) throws Exception {
|
||||
String host = "http://localhost:11434/";
|
||||
OllamaAPI ollamaAPI = new OllamaAPI(host);
|
||||
ollamaAPI.pullModel(OllamaModel.LLAMA2);
|
||||
String response = ollamaAPI.runSync(OllamaModel.LLAMA2, "Who are you?");
|
||||
System.out.println(response);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user