Fixes generate method of prompt builder

This commit is contained in:
anjeongkyun 2024-03-19 20:44:50 +09:00
parent fb4b7a7ce5
commit 4b2d566fd9

View File

@ -42,7 +42,7 @@ public class AskPhi {
.addSeparator()
.add("How do I read a file in Go and print its contents to stdout?");
OllamaResult response = ollamaAPI.generate(model, promptBuilder.build());
OllamaResult response = ollamaAPI.generate(model, promptBuilder.build(), new OptionsBuilder().build());
System.out.println(response.getResponse());
}
}