Update app.py
Browse files
app.py
CHANGED
@@ -482,7 +482,7 @@ def root():
|
|
482 |
"note": "Replace YOUR_EMAIL and YOUR_PASSWORD with your actual Not Diamond credentials."
|
483 |
})
|
484 |
|
485 |
-
@app.route('/
|
486 |
def proxy_models():
|
487 |
"""返回可用模型列表。"""
|
488 |
models = [
|
@@ -501,7 +501,7 @@ def proxy_models():
|
|
501 |
"data": models
|
502 |
})
|
503 |
|
504 |
-
@app.route('/
|
505 |
def handle_request():
|
506 |
global multi_auth_manager
|
507 |
if not multi_auth_manager:
|
|
|
482 |
"note": "Replace YOUR_EMAIL and YOUR_PASSWORD with your actual Not Diamond credentials."
|
483 |
})
|
484 |
|
485 |
+
@app.route('/api/models', methods=['GET'])
|
486 |
def proxy_models():
|
487 |
"""返回可用模型列表。"""
|
488 |
models = [
|
|
|
501 |
"data": models
|
502 |
})
|
503 |
|
504 |
+
@app.route('/api/chat/completions', methods=['POST'])
|
505 |
def handle_request():
|
506 |
global multi_auth_manager
|
507 |
if not multi_auth_manager:
|