tianlong12 commited on
Commit
8e95cf7
·
verified ·
1 Parent(s): e1691db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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