EmoCube commited on
Commit
e7e90a7
·
verified ·
1 Parent(s): cd1c8c6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -6,7 +6,7 @@ import requests
6
 
7
  # === Конфигурация ===
8
  AI_MODEL = "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO"
9
- HF_API_URL = "https://nymbo-serverless-textgen-hub.hf.space/run/bot"
10
 
11
  # === Логгер ===
12
  logging.basicConfig(level=logging.INFO)
@@ -21,7 +21,7 @@ def index():
21
  return "Proxy free test", 200
22
 
23
  # === Основной OpenAI-совместимый endpoint ===
24
- @app.route("/v1/chat/completions", methods=["POST"])
25
  def chat_completion():
26
  # Логируем входной запрос
27
  logger.info(f"📥 Запрос от клиента: {request.remote_addr}")
 
6
 
7
  # === Конфигурация ===
8
  AI_MODEL = "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO"
9
+ HF_API_URL = "https://nymbo-serverless-textgen-hub.hf.space/gradio_api/call/bot"
10
 
11
  # === Логгер ===
12
  logging.basicConfig(level=logging.INFO)
 
21
  return "Proxy free test", 200
22
 
23
  # === Основной OpenAI-совместимый endpoint ===
24
+ @app.route("/use", methods=["POST"])
25
  def chat_completion():
26
  # Логируем входной запрос
27
  logger.info(f"📥 Запрос от клиента: {request.remote_addr}")