docs: add web channel and agent plugin docs

This commit is contained in:
zhayujie
2025-05-23 11:56:41 +08:00
parent 5f7ade20dc
commit 8bf1aef801
4 changed files with 47 additions and 55 deletions

View File

@@ -1,7 +1,10 @@
# Web channel
使用SSEServer-Sent Events服务器推送事件实现提供了一个默认的网页。也可以自己实现加入api
# Web Channel
#使用方法
- 在配置文件中channel_type填入web即可
- 访问地址 http://localhost:9899/chat
- port可以在配置项 web_port中设置
提供了一个默认的AI对话页面可展示文本、图片等消息交互支持markdown语法渲染兼容插件执行。
# 使用说明
-`config.json` 配置文件中的 `channel_type` 字段填入 `web`
- 程序运行后将监听9899端口浏览器访问 http://localhost:9899/chat 即可使用
- 监听端口可以在配置文件 `web_port` 中自定义
- 对于Docker运行方式如果需要外部访问需要在 `docker-compose.yml` 中通过 ports配置将端口监听映射到宿主机