Skip to content

Commit 96dfa7a

Browse files
committed
sdgendefaults follow all other params
1 parent 5c06368 commit 96dfa7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

koboldcpp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5801,7 +5801,9 @@ def export_vars():
58015801
args.sdloramult = float(sd_loramult_var.get())
58025802
else:
58035803
args.sdlora = ""
5804-
args.sdgendefaults = sd_gen_defaults_var.get()
5804+
5805+
if sd_gen_defaults_var.get() != "":
5806+
args.sdgendefaults = sd_gen_defaults_var.get()
58055807

58065808
if whisper_model_var.get() != "":
58075809
args.whispermodel = whisper_model_var.get()
@@ -6028,7 +6030,7 @@ def import_vars(dict):
60286030

60296031
sd_lora_var.set(dict["sdlora"] if ("sdlora" in dict and dict["sdlora"]) else "")
60306032
sd_loramult_var.set(str(dict["sdloramult"]) if ("sdloramult" in dict and dict["sdloramult"]) else "1.0")
6031-
sd_gen_defaults_var.set(dict.get("sdgendefaults", ""))
6033+
sd_gen_defaults_var.set(dict["sdgendefaults"] if ("sdgendefaults" in dict and dict["sdgendefaults"]) else "")
60326034

60336035
whisper_model_var.set(dict["whispermodel"] if ("whispermodel" in dict and dict["whispermodel"]) else "")
60346036

0 commit comments

Comments
 (0)