forked from Mirror/ollama4j
Added APIs to pass images and ask questions on it with LLaVA
model
This commit is contained in:
parent
6e8a7f2593
commit
ab89dfcefe
@ -257,7 +257,7 @@ public class OllamaAPI {
|
|||||||
* @param imageFiles the list of image files to use for the question
|
* @param imageFiles the list of image files to use for the question
|
||||||
* @return OllamaResult - that includes response text and time taken for response
|
* @return OllamaResult - that includes response text and time taken for response
|
||||||
*/
|
*/
|
||||||
public OllamaResult askWithImages(String model, String promptText, List<File> imageFiles)
|
public OllamaResult askWithImageFiles(String model, String promptText, List<File> imageFiles)
|
||||||
throws OllamaBaseException, IOException, InterruptedException {
|
throws OllamaBaseException, IOException, InterruptedException {
|
||||||
List<String> images = new ArrayList<>();
|
List<String> images = new ArrayList<>();
|
||||||
for (File imageFile : imageFiles) {
|
for (File imageFile : imageFiles) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user