Updated bridge for the new horde

This commit is contained in:
Henk
2023-02-25 14:58:18 +01:00
parent 0e7b2c1ba1
commit b49070e3ed
2 changed files with 8 additions and 4 deletions

View File

@@ -1352,14 +1352,18 @@ class system_settings(settings):
try:
bridge_cd = importlib.import_module("KoboldAI-Horde-Bridge.clientData")
cluster_url = bridge_cd.cluster_url
old_api_url = bridge_cd.old_api_url
serve_old_api = bridge_cd.serve_old_api
kai_name = bridge_cd.kai_name
if kai_name == "My Awesome Instance":
kai_name = f"Automated Instance #{random.randint(-100000000, 100000000)}"
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
api_key = bridge_cd.api_key
priority_usernames = bridge_cd.priority_usernames
except:
cluster_url = "http://koboldai.net"
kai_name = f"Automated Instance #{random.randint(-100000000, 100000000)}"
cluster_url = "https://horde.koboldai.net"
old_api_url = "https://koboldai.net"
serve_old_api = True
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
api_key = "0000000000"
priority_usernames = []
# Always use the local URL & port