Skip to content

Commit e3d2008

Browse files
authored
Merge pull request #2595 from zhayujie/feat-agent-plugin
feat: add agent plugin and optimize web channel
2 parents 8e6afa5 + 8bf1aef commit e3d2008

File tree

14 files changed

+1374
-297
lines changed

14 files changed

+1374
-297
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ plugins.json
1515
itchat.pkl
1616
*.log
1717
logs/
18+
workspace
19+
config.yaml
1820
user_datas.pkl
1921
chatgpt_tool_hub/
2022
plugins/**/
@@ -31,4 +33,5 @@ plugins/banwords/lib/__pycache__
3133
!plugins/role
3234
!plugins/keyword
3335
!plugins/linkai
36+
!plugins/agent
3437
client_config.json

channel/web/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# Web channel
2-
使用SSE(Server-Sent Events,服务器推送事件)实现,提供了一个默认的网页。也可以自己实现加入api
1+
# Web Channel
32

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

0 commit comments

Comments
 (0)