mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Horde parameter fixes
This commit is contained in:
Submodule KoboldAI-Horde-Bridge updated: 6de2aa1514...df6c3d2c35
@@ -1358,6 +1358,7 @@ class system_settings(settings):
|
|||||||
if kai_name == "My Awesome Instance":
|
if kai_name == "My Awesome Instance":
|
||||||
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
|
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
|
||||||
api_key = bridge_cd.api_key
|
api_key = bridge_cd.api_key
|
||||||
|
old_api_key = bridge_cd.api_key
|
||||||
priority_usernames = bridge_cd.priority_usernames
|
priority_usernames = bridge_cd.priority_usernames
|
||||||
except:
|
except:
|
||||||
cluster_url = "https://horde.koboldai.net"
|
cluster_url = "https://horde.koboldai.net"
|
||||||
@@ -1365,12 +1366,13 @@ class system_settings(settings):
|
|||||||
serve_old_api = True
|
serve_old_api = True
|
||||||
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
|
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
|
||||||
api_key = "0000000000"
|
api_key = "0000000000"
|
||||||
|
old_api_key = "0000000000"
|
||||||
priority_usernames = []
|
priority_usernames = []
|
||||||
# Always use the local URL & port
|
# Always use the local URL & port
|
||||||
kai_url = f'http://127.0.0.1:{self.port}'
|
kai_url = f'http://127.0.0.1:{self.port}'
|
||||||
|
|
||||||
logger.info(f"Name: {kai_name} on {kai_url}")
|
logger.info(f"Name: {kai_name} on {kai_url}")
|
||||||
threading.Thread(target=self._horde_pid.bridge, args=(1, api_key, kai_name, kai_url, cluster_url, priority_usernames)).run()
|
threading.Thread(target=self._horde_pid.bridge, args=(1, api_key, kai_name, kai_url, cluster_url, priority_usernames, serve_old_api, old_api_url, old_api_key)).run()
|
||||||
else:
|
else:
|
||||||
if self._horde_pid is not None:
|
if self._horde_pid is not None:
|
||||||
logger.info("Killing Horde bridge")
|
logger.info("Killing Horde bridge")
|
||||||
|
Reference in New Issue
Block a user