Update app.py
Browse files
app.py
CHANGED
|
@@ -104,6 +104,7 @@ def chat_completions():
|
|
| 104 |
def list_models():
|
| 105 |
if not authenticate_request(request):
|
| 106 |
return jsonify({"error": {"message": "Invalid API key", "code": "invalid_api_key"}}), 401
|
|
|
|
| 107 |
return jsonify({"data": [{"id": model} for model in models], "object": "list"})
|
| 108 |
|
| 109 |
if __name__ == "__main__":
|
|
|
|
| 104 |
def list_models():
|
| 105 |
if not authenticate_request(request):
|
| 106 |
return jsonify({"error": {"message": "Invalid API key", "code": "invalid_api_key"}}), 401
|
| 107 |
+
|
| 108 |
return jsonify({"data": [{"id": model} for model in models], "object": "list"})
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|