Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Feb 23, 2023
1 parent 2de9672 commit 6426e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def get_model_info(model, directory=""):
models_on_url = True
url = True
key = True
default_url = 'https://koboldai.net'
default_url = 'https://stablehorde.net'
multi_online_models = True
if path.exists(get_config_filename(model)):
with open(get_config_filename(model), "r") as file:
Expand Down Expand Up @@ -5275,7 +5275,7 @@ def sendtocluster(txt, min, max):
}
client_agent = "KoboldAI:1.19.3:(discord)Henky!!#2205"
cluster_headers = {
'apikey': koboldai_vars.apikey,
'apikey': vars.apikey,
"Client-Agent": client_agent
}
logger.debug(f"Horde Payload: {cluster_metadata}")
Expand Down Expand Up @@ -5323,7 +5323,7 @@ def sendtocluster(txt, min, max):

while not finished:
try:
req = requests.get(koboldai_vars.colaburl[:-8] + "/api/v2/generate/text/status/" + request_id, headers=cluster_agent_headers)
req = requests.get(vars.colaburl[:-8] + "/api/v2/generate/text/status/" + request_id, headers=cluster_agent_headers)
except requests.exceptions.ConnectionError:
errmsg = f"Horde unavailable. Please try again later"
logger.error(errmsg)
Expand Down

0 comments on commit 6426e3c

Please sign in to comment.