mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
Merge branch 'zhayujie:master' into master
This commit is contained in:
@@ -53,6 +53,9 @@ DEMO视频:https://cdn.link-ai.tech/doc/cow_demo.mp4
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
# 🏷 更新日志
|
# 🏷 更新日志
|
||||||
|
|
||||||
|
>**2025.05.23:** [1.7.6版本](https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/1.7.6) 优化web网页channel、新增[AgentMesh多智能体插件](https://github.com/zhayujie/chatgpt-on-wechat/blob/master/plugins/agent/README.md)、百度语音合成优化、企微应用access_token获取优化
|
||||||
|
|
||||||
>**2025.04.11:** [1.7.5版本](https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/1.7.5) 新增支持 [wechatferry](https://github.com/zhayujie/chatgpt-on-wechat/pull/2562) 协议、新增 deepseek 模型、新增支持腾讯云语音能力、新增支持 ModelScope 和 Gitee-AI API接口
|
>**2025.04.11:** [1.7.5版本](https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/1.7.5) 新增支持 [wechatferry](https://github.com/zhayujie/chatgpt-on-wechat/pull/2562) 协议、新增 deepseek 模型、新增支持腾讯云语音能力、新增支持 ModelScope 和 Gitee-AI API接口
|
||||||
|
|
||||||
>**2024.12.13:** [1.7.4版本](https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/1.7.4) 新增 Gemini 2.0 模型、新增web channel、解决内存泄漏问题、解决 `#reloadp` 命令重载不生效问题
|
>**2024.12.13:** [1.7.4版本](https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/1.7.4) 新增 Gemini 2.0 模型、新增web channel、解决内存泄漏问题、解决 `#reloadp` 命令重载不生效问题
|
||||||
|
|||||||
@@ -186,7 +186,15 @@ class WebChannel(ChatChannel):
|
|||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
def startup(self):
|
def startup(self):
|
||||||
print("\nWeb Channel is running, please visit http://localhost:9899/chat")
|
logger.info("""[WebChannel] 当前channel为web,可修改 config.json 配置文件中的 channel_type 字段进行切换。全部可用类型为:
|
||||||
|
1. web: 网页
|
||||||
|
2. terminal: 终端
|
||||||
|
3. wechatmp: 个人公众号
|
||||||
|
4. wechatmp_service: 企业公众号
|
||||||
|
5. wechatcom_app: 企微自建应用
|
||||||
|
6. dingtalk: 钉钉
|
||||||
|
7. feishu: 飞书""")
|
||||||
|
logger.info("Web对话网页已运行, 请使用浏览器访问 http://localhost:9899/chat")
|
||||||
|
|
||||||
# 确保静态文件目录存在
|
# 确保静态文件目录存在
|
||||||
static_dir = os.path.join(os.path.dirname(__file__), 'static')
|
static_dir = os.path.join(os.path.dirname(__file__), 'static')
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ $agent use software_team 帮我写一个产品预约体验的表单页面
|
|||||||
|
|
||||||
- `calculator`: 数学计算工具
|
- `calculator`: 数学计算工具
|
||||||
- `current_time`: 获取当前时间
|
- `current_time`: 获取当前时间
|
||||||
- `browser`: 浏览器操作工具,注意需安装额外依赖
|
- `browser`: 浏览器操作工具,注意需安装`browser-use`依赖
|
||||||
- `google_search`: 搜索引擎,注意需在`config.yaml`中配置api_key
|
- `google_search`: 搜索引擎,注意需在`config.yaml`中配置 `api_key`
|
||||||
- `file_save`: 文件保存工具
|
- `file_save`: 文件保存工具,开启后智能体输出的内容将保存在 `workspace` 目录下
|
||||||
- `terminal`: 终端命令执行工具
|
- `terminal`: 终端命令执行工具
|
||||||
|
|||||||
@@ -6,8 +6,9 @@ tools:
|
|||||||
# get your apikey from https://serper.dev/
|
# get your apikey from https://serper.dev/
|
||||||
api_key: "YOUR API KEY"
|
api_key: "YOUR API KEY"
|
||||||
|
|
||||||
# Team config
|
# Agent Team 配置
|
||||||
teams:
|
teams:
|
||||||
|
# 通用智能体团队
|
||||||
general_team:
|
general_team:
|
||||||
model: "gpt-4.1-mini" # 团队使用的模型
|
model: "gpt-4.1-mini" # 团队使用的模型
|
||||||
description: "A versatile research and information agent team"
|
description: "A versatile research and information agent team"
|
||||||
@@ -24,6 +25,7 @@ teams:
|
|||||||
- browser
|
- browser
|
||||||
- terminal
|
- terminal
|
||||||
|
|
||||||
|
# 软件开发智能体团队
|
||||||
software_team:
|
software_team:
|
||||||
model: "gpt-4.1-mini"
|
model: "gpt-4.1-mini"
|
||||||
description: "A software development team with product manager, developer and tester."
|
description: "A software development team with product manager, developer and tester."
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ Pillow
|
|||||||
pre-commit
|
pre-commit
|
||||||
web.py
|
web.py
|
||||||
linkai>=0.0.6.0
|
linkai>=0.0.6.0
|
||||||
agentmesh-sdk>=0.1.2
|
agentmesh-sdk>=0.1.3
|
||||||
|
|||||||
Reference in New Issue
Block a user