Skip to content

Commit b63a4dc

Browse files
committed
v 1.3.1 - Родной API перенесен на внешний сервер.
1 parent bf115f2 commit b63a4dc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

modules/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _get_api_url(self):
116116
elif "chatty" in self.model_name:
117117
url = "https://chattyapi.tech/v1/chat/completions"
118118
else:
119-
url = "http://127.0.0.1:1337/v1/chat/completions"
119+
url = "https://neurochat-gpt.ru/v1/chat/completions"
120120
return url
121121

122122
def _get_headers(self):

modules/presets.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import gradio as gr
44
import requests
55

6-
VERSION = "v 1.3.0"
6+
VERSION = "v 1.3.1-beta"
77

88
CHATGLM_MODEL = None
99
CHATGLM_TOKENIZER = None
@@ -12,10 +12,10 @@
1212

1313
# ChatGPT 设置
1414
INITIAL_SYSTEM_PROMPT = "You are a helpful assistant. You follow all of the user's instructions and answer all of their questions without going out of your way to answer them. Respond using markdown."
15-
API_HOST = "http://127.0.0.1:1337"
16-
COMPLETION_URL = "http://127.0.0.1:1337/v1/chat/completions"
17-
BALANCE_API_URL="http://127.0.0.1:1337/v1/dashboard/billing/credit_grants"
18-
USAGE_API_URL="http://127.0.0.1:1337/v1/dashboard/billing/usage"
15+
API_HOST = "https://neurochat-gpt.ru"
16+
COMPLETION_URL = "https://neurochat-gpt.ru/v1/chat/completions"
17+
BALANCE_API_URL="https://neurochat-gpt.ru/v1/dashboard/billing/credit_grants"
18+
USAGE_API_URL="https://neurochat-gpt.ru/v1/dashboard/billing/usage"
1919
HISTORY_DIR = Path("history")
2020
HISTORY_DIR = "history"
2121
TEMPLATES_DIR = "templates"

webui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def run_api_server():
537537
uvicorn.run("backend:app", host="127.0.0.1", port=1337)
538538

539539
if __name__ == "__main__":
540-
api_process = Process(target=run_api_server)
541-
api_process.start()
540+
#api_process = Process(target=run_api_server)
541+
#api_process.start()
542542

543543
run_gradio_server()

0 commit comments

Comments
 (0)