Refactor model response classes and update API methods

- Renamed `ModelProcessesResponse` to `ModelProcessesResult` and updated all related references in the codebase.
- Introduced `OllamaEmbedResult` class to replace `OllamaEmbedResponse`, ensuring consistency across the API.
- Updated method signatures in `OllamaAPI` to reflect the new class names and adjusted integration tests accordingly.
This commit is contained in:
amithkoujalgi
2025-09-28 22:52:24 +05:30
parent dd1022a990
commit 61fe8b2b56
6 changed files with 18 additions and 18 deletions

View File

@@ -12,14 +12,14 @@ This API corresponds to the [PS](https://github.com/ollama/ollama/blob/main/docs
package io.github.ollama4j.localtests;
import io.github.ollama4j.OllamaAPI;
import io.github.ollama4j.models.ps.ModelProcessesResponse;
import io.github.ollama4j.models.ps.ModelProcessesResult;
public class Main {
public static void main(String[] args) {
OllamaAPI ollamaAPI = new OllamaAPI("http://localhost:11434");
ModelProcessesResponse response = ollamaAPI.ps();
ModelProcessesResult response = ollamaAPI.ps();
System.out.println(response);
}