PS
This API provides a list of running models and details about each model currently loaded into memory.
This API corresponds to the PS API.
package io.github.ollama4j.localtests;
import io.github.ollama4j.Ollama;
import io.github.ollama4j.models.ps.ModelProcessesResult;
public class Main {
public static void main(String[] args) {
Ollama ollama = new Ollama("http://localhost:11434");
ModelProcessesResult response = ollama.ps();
System.out.println(response);
}
}