Horde trusted checkbox and disclaimer

This commit is contained in:
SillyLossy
2023-05-26 18:54:46 +03:00
parent 4725b2bf25
commit e576eca4d6
3 changed files with 23 additions and 2 deletions

View File

@ -1008,6 +1008,12 @@
<input id="horde_auto_adjust_response_length" type="checkbox" />
Adjust response length to worker capabilities
</label>
<label for="horde_trusted_workers_only" class="checkbox_label" title="Can help with bad responses by queueing only the approved workers. May slowdown the response time.">
<input id="horde_trusted_workers_only" type="checkbox" />
Trusted workers only
</label>
<h4>API key</h4>
<h5>Get it here: <a target="_blank" href="https://horde.koboldai.net/register">Register</a><br>
Enter <span class="monospace">0000000000</span> to use anonymous mode.
@ -1026,7 +1032,7 @@
<div class="fa-solid fa-repeat "></div>
</div>
</h4>
<small class="horde_multiple_hint">You can select multiple models.</small>
<small class="horde_multiple_hint">You can select multiple models.<br>Avoid sending sensitive information to the Horde. <a id="horde_privacy_disclaimer" target="_blank" href="/notes#horde">Learn more</a></small>
<select id="horde_model" multiple>
<option>-- Horde models not loaded --</option>
</select>

View File

@ -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

View File

@ -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);