mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge pull request #346 from one-some/ui2-fix-topk
Fix top-k and shortcuts
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user