docs: update README.md

This commit is contained in:
6vision
2025-06-29 18:34:49 +08:00
parent 8c0517de0f
commit e75bed1be5
2 changed files with 5 additions and 3 deletions

View File

@@ -609,7 +609,7 @@ API Key创建在 [控制台](https://aistudio.google.com/app/apikey?hl=zh-cn)
<details>
<summary>Web</summary>
项目启动后默认运行web通道可以通过访问 http://localhost:9899/chat 在网页端进行对话,通过修改 `web_port` 配置可自定义服务端口。
项目启动后默认运行web通道配置如下:
```json
{
@@ -617,7 +617,9 @@ API Key创建在 [控制台](https://aistudio.google.com/app/apikey?hl=zh-cn)
"web_port": 9899
}
```
- `web_port`: 默认为 9899服务器防火墙和安全组放行该端口。如更改了端口配置,请访问 `http://localhost:ports/chat` (请将url中的ports替换为实际的端口)
- `web_port`: 默认为 9899可按需更改,需要服务器防火墙和安全组放行该端口
- 如本地运行,启动后请访问 `http://localhost:port/chat` ;如服务器运行,请访问 `http://ip:port/chat`
> 注:请将上述 url 中的 ip 或者 port 替换为实际的值
</details>
<details>

View File

@@ -198,7 +198,7 @@ class WebChannel(ChatChannel):
5. wechatcom_app: 企微自建应用
6. dingtalk: 钉钉
7. feishu: 飞书""")
logger.info(f"Web对话网页已运行, 请使用浏览器访问 http://localhost:{port}/chat")
logger.info(f"Web对话网页已运行, 请使用浏览器访问 http://localhost:{port}/chat(本地运行)或 http://ip:{port}/chat服务器运行 ")
# 确保静态文件目录存在
static_dir = os.path.join(os.path.dirname(__file__), 'static')