-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (27 loc) · 1.35 KB
/
Copy pathmain.py
File metadata and controls
34 lines (27 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""Orchestra —— 多智能体协同控制台
使用方式:
python main.py # 启动服务(默认 127.0.0.1:8000,开发模式)
python desktop_entry.py # 启动桌面模式(打开浏览器,非 reload)
"""
import uvicorn
from app.config import OrchestraSettings
from app.server import create_app
app = create_app()
def main():
settings = OrchestraSettings()
print("╔══════════════════════════════════════════════╗")
print("║ Orchestra 多智能体协同控制台 ║")
print("╠══════════════════════════════════════════════╣")
print(f"║ 开发模式 → http://{settings.host}:{settings.port}")
print("║ 热加载已启用 · 修改代码自动重启 ║")
print("║ 生产部署用: python desktop_entry.py ║")
print("╚══════════════════════════════════════════════╝")
uvicorn.run(
"main:app",
host=settings.host,
port=settings.port,
log_level=settings.log_level,
reload=True,
)
if __name__ == "__main__":
main()