Update app.py
Browse files
app.py
CHANGED
@@ -459,28 +459,7 @@ def before_request():
|
|
459 |
|
460 |
@app.route('/', methods=['GET'])
|
461 |
def root():
|
462 |
-
return
|
463 |
-
"service": "AI Chat Completion Proxy",
|
464 |
-
"usage": {
|
465 |
-
"endpoint": "/ai/v1/chat/completions",
|
466 |
-
"method": "POST",
|
467 |
-
"headers": {
|
468 |
-
"Content-Type": "application/json",
|
469 |
-
"Authorization": "Bearer YOUR_EMAIL1|YOUR_PASSWORD1;YOUR_EMAIL2|YOUR_PASSWORD2"
|
470 |
-
},
|
471 |
-
"body": {
|
472 |
-
"model": "One of: " + ", ".join(MODEL_INFO.keys()),
|
473 |
-
"messages": [
|
474 |
-
{"role": "system", "content": "You are a helpful assistant."},
|
475 |
-
{"role": "user", "content": "Hello, who are you?"}
|
476 |
-
],
|
477 |
-
"stream": False,
|
478 |
-
"temperature": 0.7
|
479 |
-
}
|
480 |
-
},
|
481 |
-
"availableModels": list(MODEL_INFO.keys()),
|
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():
|
|
|
459 |
|
460 |
@app.route('/', methods=['GET'])
|
461 |
def root():
|
462 |
+
return '', 200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
|
464 |
@app.route('/api/models', methods=['GET'])
|
465 |
def proxy_models():
|