From 461cd04932a45a526b826243f168e01750277575 Mon Sep 17 00:00:00 2001 From: Henk Date: Wed, 8 Jun 2022 11:30:00 +0200 Subject: [PATCH] Fix Essential Code + selectfolder fix As part of the restructuring essential code was removed that handled the --path parameter correctly. This has now been restored. Selectfolder was also updated to use its NeoCustom counterpart instead of specifying a model so that the underlying code that corrects model names is being hit again. --- aiserver.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index 434f98e7..9d394b67 100644 --- a/aiserver.py +++ b/aiserver.py @@ -942,8 +942,14 @@ def general_startup(): if(modpath): # Save directory to vars - vars.model = modpath - + vars.model = "NeoCustom" + vars.custmodpth = modpath + elif args.model: + print("Welcome to KoboldAI!\nYou have selected the following Model:", vars.model) + if args.path: + print("You have selected the following path for your Model :", args.path) + vars.custmodpth = args.path; + vars.colaburl = args.path + "/request"; # Lets just use the same parameter to keep it simple #==================================================================# # Load Model #==================================================================#