From 0e0947d93a2bc7055240495c8fd98d74f285355a Mon Sep 17 00:00:00 2001 From: KoboldAI Dev Date: Mon, 10 May 2021 09:33:41 -0400 Subject: [PATCH] Bugfix: Add apikey check to loadsettings --- aiserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiserver.py b/aiserver.py index fecb6f43..5bec7497 100644 --- a/aiserver.py +++ b/aiserver.py @@ -401,6 +401,8 @@ def loadsettings(): js = json.load(file) # Copy file contents to vars + if("apikey" in js): + vars.apikey = js["apikey"] if("andepth" in js): vars.andepth = js["andepth"] if("temp" in js):