From a5c6ba5558c5d8ee7825cc4492009e6ae2ae316a Mon Sep 17 00:00:00 2001 From: Amith Koujalgi Date: Thu, 16 Nov 2023 00:50:56 +0530 Subject: [PATCH] Updated `ask` and `askAsync` responses to include `responseTime` parameter --- .../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 0b85644..3e3e5db 100644 --- a/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java +++ b/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java @@ -194,7 +194,7 @@ public class OllamaAPI { * * @param ollamaModelType the ollama model to ask the question to * @param promptText the prompt/question text - * @return the response text from the model + * @return OllamaResult - that includes response text and time taken for response */ public OllamaResult ask(String ollamaModelType, String promptText) throws OllamaBaseException, IOException, InterruptedException { OllamaRequestModel ollamaRequestModel = new OllamaRequestModel(ollamaModelType, promptText);