Merge pull request #202 from db0/configfile_fix

fix settings name not being correct for loaded models
This commit is contained in:
henk717 2022-09-05 22:30:43 +02:00 committed by GitHub
commit 78d720037f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2098,7 +2098,7 @@ def load_model(use_gpu=True, gpu_layers=None, disk_layers=None, initial_load=Fal
vars.badwordsids = vars.badwordsids_default vars.badwordsids = vars.badwordsids_default
if online_model == "": 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 #Let's set the GooseAI or OpenAI server URLs if that's applicable
else: else:
vars.online_model = online_model vars.online_model = online_model