diff --git a/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraits.java b/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraits.java index 4bd2b29f0ef..7fa89002cab 100644 --- a/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraits.java +++ b/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraits.java @@ -20,7 +20,8 @@ import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY; import java.io.Serializable; -import java.util.HashMap; +import java.util.Collections; +import java.util.LinkedHashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -51,7 +52,7 @@ public class OllamaRecommenderTraits private ExtractionMode extractionMode = ExtractionMode.RESPONSE_AS_LABEL; - private @JsonInclude(NON_EMPTY) Map options = new HashMap(); + private @JsonInclude(NON_EMPTY) Map options = new LinkedHashMap(); public String getUrl() { @@ -122,4 +123,15 @@ public void setExtractionMode(ExtractionMode aExtractionMode) { extractionMode = aExtractionMode; } + + public Map getOptions() + { + return Collections.unmodifiableMap(options); + } + + public void setOptions(Map aOptions) + { + options.clear(); + options.putAll(aOptions); + } } diff --git a/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraitsEditor.html b/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraitsEditor.html index 073761226f1..f7857ab63c8 100644 --- a/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraitsEditor.html +++ b/inception/inception-imls-ollama/src/main/java/de/tudarmstadt/ukp/inception/recommendation/imls/ollama/OllamaRecommenderTraitsEditor.html @@ -85,6 +85,26 @@