Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -44,7 +44,7 @@ def model_list():
|
|
44 |
|
45 |
@app.route("/", methods=["GET"])
|
46 |
def index():
|
47 |
-
return Response(f'QW2 OpenAI Compatible API<br><br>'+
|
48 |
f'Set "{os.getenv("SPACE_URL")}/api" as proxy (or API Domain) in your Chatbot.<br><br>'+
|
49 |
f'The complete API is: {os.getenv("SPACE_URL")}/api/v1/chat/completions')
|
50 |
|
@@ -136,7 +136,7 @@ def gen_res_data(data, time_now=0, start=False):
|
|
136 |
"id": "chatcmpl",
|
137 |
"object": "chat.completion.chunk",
|
138 |
"created": time_now,
|
139 |
-
"model": "
|
140 |
"choices": [{"index": 0, "finish_reason": None}],
|
141 |
}
|
142 |
|
|
|
44 |
|
45 |
@app.route("/", methods=["GET"])
|
46 |
def index():
|
47 |
+
return Response(f'QW2.5 OpenAI Compatible API<br><br>'+
|
48 |
f'Set "{os.getenv("SPACE_URL")}/api" as proxy (or API Domain) in your Chatbot.<br><br>'+
|
49 |
f'The complete API is: {os.getenv("SPACE_URL")}/api/v1/chat/completions')
|
50 |
|
|
|
136 |
"id": "chatcmpl",
|
137 |
"object": "chat.completion.chunk",
|
138 |
"created": time_now,
|
139 |
+
"model": "qwen2_5",
|
140 |
"choices": [{"index": 0, "finish_reason": None}],
|
141 |
}
|
142 |
|