From 542f30cdc481b1a5935b12644d0a8218f6227c49 Mon Sep 17 00:00:00 2001 From: Divided by Zer0 Date: Mon, 5 Sep 2022 18:03:21 +0200 Subject: [PATCH] fix settings name not being correct for loaded models --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index aac7be06..3bf1ef6a 100644 --- a/aiserver.py +++ b/aiserver.py @@ -621,7 +621,7 @@ api_v1 = KoboldAPISpec( # If the model_name is specified, it returns what the settings file would be for that model def get_config_filename(model_name = None): if model_name: - return(f"settings/{model_name.replace('/', '_')}.settings") + return(f"settings/{model_name.replace('/', '_')}.settings") elif args.configname: return(f"settings/{args.configname}.settings") elif vars.configname != '': @@ -2098,7 +2098,7 @@ def load_model(use_gpu=True, gpu_layers=None, disk_layers=None, initial_load=Fal vars.badwordsids = vars.badwordsids_default if online_model == "": - vars.configname = vars.model + vars.configname = vars.model.replace('/', '_') #Let's set the GooseAI or OpenAI server URLs if that's applicable else: vars.online_model = online_model