From 96dfa7a038852b1c1028de63fcb0698df6694518 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 9 Oct 2025 14:57:34 +0800 Subject: [PATCH] sdgendefaults follow all other params --- koboldcpp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index 2deec6ad5..3c8cddb0f 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -5801,7 +5801,9 @@ def show_gui(): args.sdloramult = float(sd_loramult_var.get()) else: args.sdlora = "" - args.sdgendefaults = sd_gen_defaults_var.get() + + if sd_gen_defaults_var.get() != "": + args.sdgendefaults = sd_gen_defaults_var.get() if whisper_model_var.get() != "": args.whispermodel = whisper_model_var.get() @@ -6028,7 +6030,7 @@ def show_gui(): sd_lora_var.set(dict["sdlora"] if ("sdlora" in dict and dict["sdlora"]) else "") sd_loramult_var.set(str(dict["sdloramult"]) if ("sdloramult" in dict and dict["sdloramult"]) else "1.0") - sd_gen_defaults_var.set(dict.get("sdgendefaults", "")) + sd_gen_defaults_var.set(dict["sdgendefaults"] if ("sdgendefaults" in dict and dict["sdgendefaults"]) else "") whisper_model_var.set(dict["whispermodel"] if ("whispermodel" in dict and dict["whispermodel"]) else "")