Skip to content

Commit d3d5e36

Browse files
committed
backwards compat for older flags in config load
1 parent 51cac6f commit d3d5e36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

koboldcpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6135,6 +6135,7 @@ def tunnel_reader():
61356135
def reload_from_new_args(newargs):
61366136
try:
61376137
args.istemplate = False
6138+
newargs = convert_invalid_args(newargs)
61386139
for key, value in newargs.items(): #do not overwrite certain values
61396140
if key not in ["remotetunnel","showgui","port","host","port_param","admin","adminpassword","admindir","ssl","nocertify","benchmark","prompt","config"]:
61406141
setattr(args, key, value)
@@ -6160,6 +6161,7 @@ def load_config_cli(filename):
61606161
print("Loading .kcpps configuration file...")
61616162
with open(filename, 'r', encoding='utf-8', errors='ignore') as f:
61626163
config = json.load(f)
6164+
config = convert_invalid_args(config)
61636165
if "onready" in config:
61646166
config["onready"] = "" #do not allow onready commands from config
61656167
args.istemplate = False

0 commit comments

Comments
 (0)