feat: v2.0.0 - 合并后台管理到单端口

- 端口从 19007+19008 合并为 19007
- 前台API: http://localhost:19007/v1/chat/completions
- 后台管理: http://localhost:19007/admin
- 新增 templates 目录,整合管理页面模板
- 更新所有路由为 /admin 路径
- 后台API统一到 /api/admin 路径下
This commit is contained in:
2026-04-13 10:59:00 +08:00
parent 8086d76e93
commit 34afe96055
11 changed files with 2728 additions and 165 deletions

27
test_server.py Normal file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python3
"""简单的测试服务"""
from flask import Flask, jsonify
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
@app.route('/')
def index():
return jsonify({
"name": "LLM Proxy",
"status": "running"
})
@app.route('/health')
def health():
return jsonify({"status": "ok"})
if __name__ == '__main__':
print("=" * 50)
print("LLM Proxy Test Server")
print("=" * 50)
print("Port: 19007")
print("=" * 50)
app.run(host='0.0.0.0', port=19007)