Fixes recursive call in non streamed chat API

This commit is contained in:
Markus Klenke 2024-02-16 15:57:14 +00:00
parent f38a00ebdc
commit 91aab6cbd1

View File

@ -449,7 +449,7 @@ public class OllamaAPI {
* @throws InterruptedException in case the server is not reachable or network issues happen * @throws InterruptedException in case the server is not reachable or network issues happen
*/ */
public OllamaChatResult chat(OllamaChatRequestModel request) throws OllamaBaseException, IOException, InterruptedException{ public OllamaChatResult chat(OllamaChatRequestModel request) throws OllamaBaseException, IOException, InterruptedException{
return chat(request); return chat(request,null);
} }
/** /**