File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ cd backend # 切换到 backend 目录下
100100pip install uv # 推荐使用 uv 管理 python 项目
101101uv sync # 安装依赖
102102# 启动后端
103+ # MacOS or Linux 运行这条命令
103104ENV=DEV uvicorn app.main:app --host 0.0.0.0 --port 8000 --ws-ping-interval 60 --ws-ping-timeout 120
105+ # Windows 运行这条命令
106+ set ENV=DEV && uvicorn app.main:app --host 0.0.0.0 --port 8000 --ws-ping-interval 60 --ws-ping-timeout 120
104107```
105108
106109启动前端
Original file line number Diff line number Diff line change 1+ ENV=dev
2+ #兼容 OpenAI 格式都行,具体看官方文档
3+ DEEPSEEK_API_KEY=
4+ DEEPSEEK_MODEL=
5+ DEEPSEEK_BASE_URL=
6+ # 模型最大问答次数
7+ MAX_CHAT_TURNS=60
8+ # 思考反思次数
9+ MAX_RETRIES=5
10+ # https://e2b.dev/
11+ E2B_API_KEY=
12+
13+ LOG_LEVEL=DEBUG
14+ DEBUG=true
15+ # 确保安装 Redis
16+ REDIS_URL=redis://localhost:6379/0
17+ REDIS_MAX_CONNECTIONS=20
18+ CORS_ALLOW_ORIGINS=http://localhost:5173,http://localhost:3000
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments