Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def generate_response(query:str) -> str:
|
|
62 |
return f"API Server is under maintenance. Please Try After Some Time Thank You for using TrueSyncAI Chat API. Have a great day."
|
63 |
|
64 |
# Chat Endpoint
|
65 |
-
@app.route("/chat", methods=["POST"])
|
66 |
def chat():
|
67 |
global request_count
|
68 |
data = request.json
|
|
|
62 |
return f"API Server is under maintenance. Please Try After Some Time Thank You for using TrueSyncAI Chat API. Have a great day."
|
63 |
|
64 |
# Chat Endpoint
|
65 |
+
@app.route("/v1/chat/completions", methods=["POST"])
|
66 |
def chat():
|
67 |
global request_count
|
68 |
data = request.json
|