mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-06-20 09:17:18 +02:00
451 B
451 B
sidebar_position
sidebar_position |
---|
2 |
Pull Model
This API lets you pull a model on the Ollama server.
public class Main {
public static void main(String[] args) {
String host = "http://localhost:11434/";
OllamaAPI ollamaAPI = new OllamaAPI(host);
ollamaAPI.pullModel(OllamaModelType.LLAMA2);
}
}
Once downloaded, you can see them when you use list models API.