From 417cfe20bf21478124116f8c0c61c8a7a1c77ae1 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 31 Aug 2022 11:50:27 -0400 Subject: [PATCH] Fix for saving key in cluster mode --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index c47dac89..be57472d 100644 --- a/aiserver.py +++ b/aiserver.py @@ -1611,11 +1611,11 @@ def get_cluster_models(msg): if 'online_model' in js: online_model = js['online_model'] if "apikey" in js: - if js['apikey'] != key: + if js['apikey'] != vars.oaiapikey: changed=True if changed: with open("settings/{}.settings".format(vars.model_selected), "w") as file: - js["apikey"] = key + js["apikey"] = vars.oaiapikey file.write(json.dumps(js, indent=3)) emit('from_server', {'cmd': 'oai_engines', 'data': engines, 'online_model': online_model}, broadcast=True)