mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-17 04:09:19 +00:00
falsy value handling on load config
This commit is contained in:
parent
243b03586b
commit
7a2f653451
1 changed files with 1 additions and 1 deletions
|
|
@ -9593,7 +9593,7 @@ def reload_new_config(filename,defaultargs,overwrite_blank=False): #for changing
|
|||
for key, value in defaultargs.items(): # Fill missing defaults directly into config
|
||||
if key not in config:
|
||||
config[key] = value
|
||||
elif overwrite_blank and key in config and not config[key]:
|
||||
elif overwrite_blank and key in config and config[key] in (None, ""):
|
||||
config[key] = value
|
||||
reload_from_new_args(config)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue