mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-04-25 11:18:06 +00:00
Merge pull request #514 from NA-Wen/main
readme: add hint for disconnet between frontend and backend
This commit is contained in:
commit
46c5b2ab18
@ -133,6 +133,13 @@ ChatDev 已从一个专门的软件开发多智能体系统演变为一个全面
|
||||
```
|
||||
> 然后访问 Web 控制台:**[http://localhost:5173](http://localhost:5173)**。
|
||||
|
||||
> **💡 提示**:如果前端无法连接后端,可能是默认端口 `6400` 已被占用。
|
||||
> 请将前后端同时切换到一个空闲端口,例如:
|
||||
>
|
||||
> * **后端**:启动时指定 `--port 6401`
|
||||
> * **前端**:设置 `VITE_API_BASE_URL=http://localhost:6401`
|
||||
|
||||
|
||||
### 🔑 配置
|
||||
|
||||
* **环境变量**:在项目根目录创建一个 `.env` 文件。
|
||||
|
||||
@ -134,6 +134,14 @@ See our paper in [Multi-Agent Collaboration via Evolving Orchestration](https://
|
||||
VITE_API_BASE_URL=http://localhost:6400 npm run dev
|
||||
```
|
||||
> Then access the Web Console at **[http://localhost:5173](http://localhost:5173)**.
|
||||
|
||||
|
||||
> **💡 Tip**: If the frontend fails to connect to the backend, the default port `6400` may already be occupied.
|
||||
> Please switch both services to an available port, for example:
|
||||
>
|
||||
> * **Backend**: start with `--port 6401`
|
||||
> * **Frontend**: set `VITE_API_BASE_URL=http://localhost:6401`
|
||||
|
||||
|
||||
### 🔑 Configuration
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user