mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Updated bridge for the new horde
This commit is contained in:
Submodule KoboldAI-Horde-Bridge updated: 965d6ce970...6de2aa1514
@@ -1352,14 +1352,18 @@ class system_settings(settings):
|
|||||||
try:
|
try:
|
||||||
bridge_cd = importlib.import_module("KoboldAI-Horde-Bridge.clientData")
|
bridge_cd = importlib.import_module("KoboldAI-Horde-Bridge.clientData")
|
||||||
cluster_url = bridge_cd.cluster_url
|
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
|
kai_name = bridge_cd.kai_name
|
||||||
if kai_name == "My Awesome Instance":
|
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
|
api_key = bridge_cd.api_key
|
||||||
priority_usernames = bridge_cd.priority_usernames
|
priority_usernames = bridge_cd.priority_usernames
|
||||||
except:
|
except:
|
||||||
cluster_url = "http://koboldai.net"
|
cluster_url = "https://horde.koboldai.net"
|
||||||
kai_name = f"Automated Instance #{random.randint(-100000000, 100000000)}"
|
old_api_url = "https://koboldai.net"
|
||||||
|
serve_old_api = True
|
||||||
|
kai_name = f"KoboldAI UI Instance #{random.randint(-100000000, 100000000)}"
|
||||||
api_key = "0000000000"
|
api_key = "0000000000"
|
||||||
priority_usernames = []
|
priority_usernames = []
|
||||||
# Always use the local URL & port
|
# Always use the local URL & port
|
||||||
|
Reference in New Issue
Block a user