diff --git a/public/index.html b/public/index.html index e4253b548..9ffd95873 100644 --- a/public/index.html +++ b/public/index.html @@ -1008,6 +1008,12 @@ Adjust response length to worker capabilities + + +

API key

Get it here: Register
Enter 0000000000 to use anonymous mode. @@ -1026,7 +1032,7 @@
- You can select multiple models. + You can select multiple models.
Avoid sending sensitive information to the Horde. Learn more
diff --git a/public/notes/content.md b/public/notes/content.md index e2b64c967..c8ac792c3 100644 --- a/public/notes/content.md +++ b/public/notes/content.md @@ -242,6 +242,14 @@ This is useful when your keys are common words or parts of common words. For example, when this setting is active, keys 'rose' and 'Rose' will be treated differently, depending on the inputs. +## Horde + +Horde is a distributed GPU cluster run entirely by volunteers. Your inputs are always anonymous, and prompts are not visible to the workers by default. + +However, malicious agents could modify the open-source bridging software to log your activity or produce bad responses. So, when using Horde, avoid sending any personal information such as names, email addresses, etc. + +If you encounter any abnormal activity, switch on the "Trusted Workers Only" checkbox and report it to the [KoboldAI Discord](https://koboldai.org/discord). + ## KoboldAI ### Basic Settings diff --git a/public/scripts/horde.js b/public/scripts/horde.js index 5464dde8f..5ca492816 100644 --- a/public/scripts/horde.js +++ b/public/scripts/horde.js @@ -25,6 +25,7 @@ let horde_settings = { models: [], auto_adjust_response_length: true, auto_adjust_context_length: false, + trusted_workers_only: false, }; const MAX_RETRIES = 100; @@ -100,7 +101,7 @@ async function generateHorde(prompt, params, signal) { const payload = { "prompt": prompt, "params": params, - //"trusted_workers": false, + "trusted_workers": horde_settings.trusted_workers_only, //"slow_workers": false, "models": horde_settings.models, }; @@ -198,6 +199,7 @@ function loadHordeSettings(settings) { $('#horde_auto_adjust_response_length').prop("checked", horde_settings.auto_adjust_response_length); $('#horde_auto_adjust_context_length').prop("checked", horde_settings.auto_adjust_context_length); + $("#horde_trusted_workers_only").prop("checked", horde_settings.trusted_workers_only); } async function showKudos() { @@ -251,6 +253,11 @@ jQuery(function () { saveSettingsDebounced(); }); + $("#horde_trusted_workers_only").on("input", function () { + horde_settings.trusted_workers_only = !!$(this).prop("checked"); + saveSettingsDebounced(); + }) + $("#horde_api_key").on("input", async function () { const key = $(this).val().trim(); await writeSecret(SECRET_KEYS.HORDE, key);