Skip to content

Commit c85ea60

Browse files
committed
update readme
update readme
1 parent 5576758 commit c85ea60

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ cd backend # 切换到 backend 目录下
100100
pip install uv # 推荐使用 uv 管理 python 项目
101101
uv sync # 安装依赖
102102
# 启动后端
103+
# MacOS or Linux 运行这条命令
103104
ENV=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
启动前端

backend/.env.dev.example

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

backend/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)