From 8422774aac0ab11b034376564fb76f3f49cd2f3e Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 6 Sep 2022 14:37:10 -0400 Subject: [PATCH] Added Horde Mode Random username/password/hostname --- koboldai_settings.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index 1fe74704..be0f3c17 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -801,13 +801,15 @@ class system_settings(settings): if value == True: import subprocess if os.path.exists('./KoboldAI-Horde/venv/scripts/python.exe'): + import random + random.seed() self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/scripts/python.exe', './KoboldAI-Horde/bridge.py', - '--username', 'new_ui_user', '--password', '3589yhusd*YT$^', '--kai_name', 'Test New UI', - '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"]) + '--username', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--password', '{}'.format(random.randint(-1000000000000, 1000000000000)), + '--kai_name', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"]) else: self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/bin/python', './KoboldAI-Horde/bridge.py', - '--username', 'new_ui_user', '--password', '3589yhusd*YT$^', '--kai_name', 'Test New UI', - '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"]) + '--username', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--password', '{}'.format(random.randint(-1000000000000, 1000000000000)), + '--kai_name', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"]) else: if self._horde_pid is not None: print("kill bridge")