Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def authenticate():
|
|
| 15 |
token = auth_header.split(" ")[1]
|
| 16 |
return token == API_KEY
|
| 17 |
|
| 18 |
-
@app.route('/v1/chat/completions', methods=['POST'])
|
| 19 |
def chat_completions():
|
| 20 |
if not authenticate():
|
| 21 |
return jsonify({"error": "Unauthorized"}), 401
|
|
|
|
| 15 |
token = auth_header.split(" ")[1]
|
| 16 |
return token == API_KEY
|
| 17 |
|
| 18 |
+
@app.route('/hf/v1/chat/completions', methods=['POST'])
|
| 19 |
def chat_completions():
|
| 20 |
if not authenticate():
|
| 21 |
return jsonify({"error": "Unauthorized"}), 401
|