Merge pull request #346 from one-some/ui2-fix-topk

Fix top-k and shortcuts
This commit is contained in:
ebolam
2022-12-16 21:18:36 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -642,7 +642,7 @@ class model_settings(settings):
'koboldai_vars', 'welcome', 'welcome_default', 'simple_randomness', 'simple_creativity', 'simple_repitition',
'badwordsids', 'uid_presets']
settings_name = "model"
default_settings = {"rep_pen" : 1.1, "rep_pen_slope": 0.7, "rep_pen_range": 1024, "temp": 0.5, "top_p": 0.9, "top_k": 0.0, "top_a": 0.0, "tfs": 1.0, "typical": 1.0,
default_settings = {"rep_pen" : 1.1, "rep_pen_slope": 0.7, "rep_pen_range": 1024, "temp": 0.5, "top_p": 0.9, "top_k": 0, "top_a": 0.0, "tfs": 1.0, "typical": 1.0,
"sampler_order": [6,0,1,2,3,4,5]}
def __init__(self, socketio, koboldai_vars):
self.socketio = socketio

View File

@@ -6161,6 +6161,7 @@ function initalizeTooltips() {
(function() {
document.addEventListener("keydown", function(event) {
for (const shortcut of shortcuts) {
if (!(event.ctrlKey || event.altKey)) continue;
if (event.ctrlKey && shortcut.mod !== "ctrl") continue;
if (event.altKey && shortcut.mod !== "alt") continue;