From 29b710b2bffd92847c3ba52f69521556f0509ee6 Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:17:29 +0100 Subject: [PATCH] Tweak settings design --- .../java/com/soulfiremc/server/plugins/ForwardingBypass.java | 1 + .../main/java/com/soulfiremc/server/settings/AISettings.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/soulfiremc/server/plugins/ForwardingBypass.java b/server/src/main/java/com/soulfiremc/server/plugins/ForwardingBypass.java index baa91202..b78f330c 100644 --- a/server/src/main/java/com/soulfiremc/server/plugins/ForwardingBypass.java +++ b/server/src/main/java/com/soulfiremc/server/plugins/ForwardingBypass.java @@ -294,6 +294,7 @@ private static class ForwardingBypassSettings implements SettingsObject { .uiName("Secret") .description("Secret key used for forwarding. (Not needed for legacy mode)") .defaultValue("forwarding secret") + .secret(true) .build(); @RequiredArgsConstructor diff --git a/server/src/main/java/com/soulfiremc/server/settings/AISettings.java b/server/src/main/java/com/soulfiremc/server/settings/AISettings.java index 80cb863a..48cb01b2 100644 --- a/server/src/main/java/com/soulfiremc/server/settings/AISettings.java +++ b/server/src/main/java/com/soulfiremc/server/settings/AISettings.java @@ -41,7 +41,7 @@ public class AISettings implements SettingsObject { ImmutableStringProperty.builder() .namespace(NAMESPACE) .key("api-username") - .uiName("API Username") + .uiName("API Username (optional)") .description("Ollama API server username (if required)") .defaultValue("") .build(); @@ -49,9 +49,10 @@ public class AISettings implements SettingsObject { ImmutableStringProperty.builder() .namespace(NAMESPACE) .key("api-password") - .uiName("API Password") + .uiName("API Password (optional)") .description("Ollama API server password (if required)") .defaultValue("") + .secret(true) .build(); public static final IntProperty REQUEST_TIMEOUT = ImmutableIntProperty.builder()