Signed-off-by: koujalgi.amith@gmail.com <koujalgi.amith@gmail.com>
This commit is contained in:
koujalgi.amith@gmail.com 2024-07-14 00:07:23 +05:30
parent c9b05a725b
commit fd93036d08

View File

@ -22,7 +22,7 @@ public class Main {
OllamaAsyncResultStreamer streamer = ollamaAPI.generateAsync(OllamaModelType.LLAMA3, prompt, false); OllamaAsyncResultStreamer streamer = ollamaAPI.generateAsync(OllamaModelType.LLAMA3, prompt, false);
// Set the poll interval according to your needs. // Set the poll interval according to your needs.
// Smaller the poll interval, more frequently you receive the token. // Smaller the poll interval, more frequently you receive the tokens.
int pollIntervalMilliseconds = 1000; int pollIntervalMilliseconds = 1000;
while (true) { while (true) {