Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def requires_api_key(func):
|
|
| 50 |
def index():
|
| 51 |
return 'Hello, World!'
|
| 52 |
|
| 53 |
-
@app.route('/
|
| 54 |
@requires_api_key
|
| 55 |
def chat_completions(api_key):
|
| 56 |
return jsonify({'detail': "YOUUUUUUUUUU"}), 500
|
|
|
|
| 50 |
def index():
|
| 51 |
return 'Hello, World!'
|
| 52 |
|
| 53 |
+
@app.route('/chat/completions', methods=['POST', 'GET'])
|
| 54 |
@requires_api_key
|
| 55 |
def chat_completions(api_key):
|
| 56 |
return jsonify({'detail': "YOUUUUUUUUUU"}), 500
|