Update main.py
Browse files
main.py
CHANGED
@@ -45,9 +45,9 @@ def model_list():
|
|
45 |
|
46 |
@app.route("/", methods=["GET"])
|
47 |
def index():
|
48 |
-
return Response(f
|
49 |
f'Set "{os.getenv("SPACE_URL")}/api" as proxy (or API Domain) in your Chatbot.<br><br>'+
|
50 |
-
f
|
51 |
f"Don't set the Syetem Prompt. It will be ignored.")
|
52 |
|
53 |
@app.route("/api/v1/chat/completions", methods=["POST", "OPTIONS"])
|
|
|
45 |
|
46 |
@app.route("/", methods=["GET"])
|
47 |
def index():
|
48 |
+
return Response(f'Hunyuan OpenAI Compatible API<br><br>'+
|
49 |
f'Set "{os.getenv("SPACE_URL")}/api" as proxy (or API Domain) in your Chatbot.<br><br>'+
|
50 |
+
f'The complete API is: {os.getenv("SPACE_URL")}/api/v1/chat/completions<br><br>'+
|
51 |
f"Don't set the Syetem Prompt. It will be ignored.")
|
52 |
|
53 |
@app.route("/api/v1/chat/completions", methods=["POST", "OPTIONS"])
|