From 5cc64ebb52f901f8d8525dfacba975a2b00bdc6e Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:51:32 +0800 Subject: [PATCH] dynatemp wizard --- klite.embd | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++-- koboldcpp.py | 4 ++-- llama.cpp | 3 ++- 3 files changed, 56 insertions(+), 5 deletions(-) diff --git a/klite.embd b/klite.embd index 954fbf3d0ad4c..5589f7930f419 100644 --- a/klite.embd +++ b/klite.embd @@ -6,7 +6,7 @@ It requires no dependencies, installation or setup. Just copy this single static HTML file anywhere and open it in a browser, or from a webserver. Please go to https://github.com/LostRuins/lite.koboldai.net for updates on Kobold Lite. Kobold Lite is under the AGPL v3.0 License unless otherwise exempted. Please do not remove this line. -Current version: 104 +Current version: 105 -Concedo --> @@ -5946,6 +5946,30 @@ Current version: 104 document.getElementById("advancedloadfile").classList.add("hidden"); } + function confirm_dynatemp() + { + let a1 = parseFloat(document.getElementById("dynatemp_min").value); + let a2 = parseFloat(document.getElementById("dynatemp_max").value); + let avg = (a1+a2)*0.5; + let diff = Math.abs(a2 - a1)*0.5; + document.getElementById("temperature").value = avg.toFixed(3); + document.getElementById("dynatemp_range").value = diff.toFixed(3); + + document.getElementById("dynatempcontainer").classList.add("hidden"); + } + function show_dynatemp() + { + let currtmp = parseFloat(document.getElementById("temperature").value); + let currrng = parseFloat(document.getElementById("dynatemp_range").value); + let a1 = currtmp - currrng; + let a2 = currtmp + currrng; + a1 = a1<0?0:a1; + a2 = a2<0?0:a2; + document.getElementById("dynatemp_min").value = a1.toFixed(2); + document.getElementById("dynatemp_max").value = a2.toFixed(2); + document.getElementById("dynatempcontainer").classList.remove("hidden"); + } + function explain_horde() { msgbox("The AI Horde generates text using crowdsourced GPUs by volunteer workers. By default your inputs are not logged, but as Horde workers are open source, they can be modified to do so.

In all cases, the sender will *always be anonymous*, however you are still advised to avoid sending privacy sensitive information.

For any issues, you can find us on discord at https://koboldai.org/discord","Disclaimer",true); @@ -12510,7 +12534,7 @@ Current version: 104 + id="dynatemp_range" > @@ -12954,6 +12978,32 @@ Current version: 104 + +