From 31c8a7efdf6c2533d80b8fdeaec9980bb915abc0 Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Thu, 19 Dec 2024 07:37:21 +0100 Subject: [PATCH] Update to latest snapshot --- .../com/thomasvitale/ai/spring/model/ChatModelController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }