Made Core#qurryOllama asynchronous instead to make so it doesn't lock up the calling thread, issue discovered in the (Ollama-chat)[https://git.server.4zellen.se/neurodock/Ollama-chat] Proof of Concept

This commit is contained in:
Zacharias committed 2026-06-28 17:18:41 +02:00
1 parent 3c6a75a587
commit caf60eddef
3 files changed
+50 -49

No files matched your search

@@ -169,7 +169,7 @@ public class Display {
writeLog("User: " + message);
core.getOllamaObject().addMessage(new OllamaMessage(OllamaMessageRole.USER, message.toString()));
//System.out.println(ollamaObject.toString());
core.handleResponse(core.qurryOllama());
core.qurryOllama().thenAccept(core::handleResponse);
}
}
} catch (Exception e) {