From 91aab6cbd15a682ba4c972e5f7d21372e661c50a Mon Sep 17 00:00:00 2001 From: Markus Klenke Date: Fri, 16 Feb 2024 15:57:14 +0000 Subject: [PATCH] Fixes recursive call in non streamed chat API --- .../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 7e82ee8..20e9d3e 100644 --- a/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java +++ b/src/main/java/io/github/amithkoujalgi/ollama4j/core/OllamaAPI.java @@ -449,7 +449,7 @@ public class OllamaAPI { * @throws InterruptedException in case the server is not reachable or network issues happen */ public OllamaChatResult chat(OllamaChatRequestModel request) throws OllamaBaseException, IOException, InterruptedException{ - return chat(request); + return chat(request,null); } /**