From ab89dfcefe9be73cd8f4dbb76cdbbba2c3c4b689 Mon Sep 17 00:00:00 2001 From: Amith Koujalgi Date: Sun, 17 Dec 2023 15:07:26 +0530 Subject: [PATCH] Added APIs to pass images and ask questions on it with `LLaVA` model --- .../java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java b/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java index 83727f2..066460f 100644 --- a/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java +++ b/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java @@ -257,7 +257,7 @@ public class OllamaAPI { * @param imageFiles the list of image files to use for the question * @return OllamaResult - that includes response text and time taken for response */ - public OllamaResult askWithImages(String model, String promptText, List imageFiles) + public OllamaResult askWithImageFiles(String model, String promptText, List imageFiles) throws OllamaBaseException, IOException, InterruptedException { List images = new ArrayList<>(); for (File imageFile : imageFiles) {