mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Regression fix on model settings file from United import
This commit is contained in:
@@ -1268,14 +1268,6 @@ def loadsettings():
|
||||
with open("settings/" + getmodelname().replace('/', '_') + ".v2_settings", "r") as file:
|
||||
getattr(koboldai_vars, "_model_settings").from_json(file.read())
|
||||
|
||||
file.close()
|
||||
if(path.exists(get_config_filename())):
|
||||
# Read file contents into JSON object
|
||||
file = open(get_config_filename(), "r")
|
||||
js = json.load(file)
|
||||
|
||||
processsettings(js)
|
||||
file.close()
|
||||
|
||||
def processsettings(js):
|
||||
# Copy file contents to vars
|
||||
|
Reference in New Issue
Block a user