diff --git a/models/chat/chat-ollama/src/main/java/com/thomasvitale/ai/spring/model/ChatModelController.java b/models/chat/chat-ollama/src/main/java/com/thomasvitale/ai/spring/model/ChatModelController.java index 5b7aee0..559877a 100644 --- a/models/chat/chat-ollama/src/main/java/com/thomasvitale/ai/spring/model/ChatModelController.java +++ b/models/chat/chat-ollama/src/main/java/com/thomasvitale/ai/spring/model/ChatModelController.java @@ -39,7 +39,7 @@ String chatGenericOptions(String question) { @GetMapping("/chat/provider-options") String chatProviderOptions(String question) { return chatModel.call(new Prompt(question, OllamaOptions.builder() - .withRepeatPenalty(1.5) + .repeatPenalty(1.5) .build())) .getResult().getOutput().getText(); }