Skip to content

Commit 2ed1545

Browse files
c121914yufishwww-wwFinleyGenewfish-cmykxqvvu
authored
V4.12.4 features (#5626)
* fix: push again, user select option button and form input radio content overflow (#5601) * fix: push again, user select option button and form input radio content overflow * fix: use useCallback instead of useMemo, fix unnecessary delete * fix: Move the variable inside the component * fix: do not pass valueLabel to MySelect * ui * del collection api adapt * refactor: inherit permission (#5529) * refactor: permission update conflict check function * refactor(permission): app collaborator update api * refactor(permission): support app update collaborator * feat: support fe permission conflict check * refactor(permission): app permission * refactor(permission): dataset permission * refactor(permission): team permission * chore: fe adjust * fix: type error * fix: audit pagiation * fix: tc * chore: initv4130 * fix: app/dataset auth logic * chore: move code * refactor(permission): remove selfPermission * fix: mock * fix: test * fix: app & dataset auth * fix: inherit * test(inheritPermission): test syncChildrenPermission * prompt editor add list plugin (#5620) * perf: search result (#5608) * fix: table size (#5598) * temp: list value * backspace * optimize code --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> * fix: fe & member list (#5619) * chore: initv4130 * fix: MemberItemCard * fix: MemberItemCard * chore: fe adjust & init script * perf: test code * doc * fix debug variables (#5617) * perf: search result (#5608) * fix: table size (#5598) * fix debug variables * fix --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> * perf: member ui * fix: inherit bug (#5624) * refactor(permission): remove getClbsWithInfo, which is useless * fix: app list privateApp * fix: get infos * perf(fe): remove delete icon when it is disable in MemberItemCard * fix: dataset private dataset * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * perf: auto coupon * chore: upgrade script & get infos avatar (#5625) * fix: get infos * chore: initv4130 * feat: support WecomRobot publish, and fix AesKey can not save bug (#5526) * feat: resolve conflicts * fix: add param 'show_publish_wecom' * feat: abstract out WecomCrypto type * doc: wecom robot document * fix: solve instability in AI output * doc: update some pictures * feat: remove functions from request.ts to chat.ts and toolCall.ts * doc: wecom robot doc update * fix * delete unused code * doc: update version and prompt * feat: remove wecom crypto, delete wecom code in workflow * feat: delete unused codes --------- Co-authored-by: heheer <zhiyu44@qq.com> * remove test * rename init shell * feat: collection page store * reload sandbox * pysandbox * remove log * chore: remove useless code (#5629) * chore: remove useless code * fix: checkConflict * perf: support hidden type for RoleList * fix: copy node * update doc * fix(permission): some bug (#5632) * fix: app/dataset list * fix: inherit bug * perf: del app;i18n;save chat * fix: test * i18n * fix: sumper overflow return OwnerRoleVal (#5633) * remove invalid code * fix: scroll * fix: objectId * update next * update package * object id * mock redis * feat: add redis append to resolve wecom stream response (#5643) * feat: resolve conflicts * fix: add param 'show_publish_wecom' * feat: abstract out WecomCrypto type * doc: wecom robot document * fix: solve instability in AI output * doc: update some pictures * feat: remove functions from request.ts to chat.ts and toolCall.ts * doc: wecom robot doc update * fix * delete unused code * doc: update version and prompt * feat: remove wecom crypto, delete wecom code in workflow * feat: delete unused codes * feat: add redis append method --------- Co-authored-by: heheer <zhiyu44@qq.com> * cache per * fix(test): init team sub when creating mocked user (#5646) * fix: button is not vertically centered (#5647) * doc * fix: gridFs objectId (#5649) --------- Co-authored-by: Zeng Qingwen <143274079+fishwww-ww@users.noreply.github.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: heheer <zhiyu44@qq.com>
1 parent c8934e3 commit 2ed1545

File tree

187 files changed

+3688
-2208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+3688
-2208
lines changed

document/content/docs/introduction/development/openapi/dataset.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,16 +868,20 @@ curl --location --request PUT 'http://localhost:3000/api/core/dataset/collection
868868
<Tab value="请求示例" >
869869

870870
```bash
871-
curl --location --request DELETE 'http://localhost:3000/api/core/dataset/collection/delete?id=65aa2a64e6cb9b8ccdc00de8' \
872-
--header 'Authorization: Bearer {{authorization}}' \
871+
curl --location --request POST 'http://localhost:3000/api/core/dataset/collection/delete' \
872+
--header 'Authorization: Bearer fastgpt-' \
873+
--header 'Content-Type: application/json' \
874+
--data-raw '{
875+
"collectionIds": ["65a8cdcb0d70d3de0bf08d0a"]
876+
}'
873877
```
874878

875879
</Tab>
876880

877881
<Tab value="参数说明" >
878882

879883
<div>
880-
- id: 集合的ID
884+
- collectionIds: 集合的 ID 列表
881885
</div>
882886

883887
</Tab>

document/content/docs/toc.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ description: FastGPT 文档目录
102102
- [/docs/upgrading/4-12/4121](/docs/upgrading/4-12/4121)
103103
- [/docs/upgrading/4-12/4122](/docs/upgrading/4-12/4122)
104104
- [/docs/upgrading/4-12/4123](/docs/upgrading/4-12/4123)
105+
- [/docs/upgrading/4-12/4124](/docs/upgrading/4-12/4124)
105106
- [/docs/upgrading/4-8/40](/docs/upgrading/4-8/40)
106107
- [/docs/upgrading/4-8/41](/docs/upgrading/4-8/41)
107108
- [/docs/upgrading/4-8/42](/docs/upgrading/4-8/42)
@@ -180,3 +181,4 @@ description: FastGPT 文档目录
180181
- [/docs/use-cases/external-integration/feishu](/docs/use-cases/external-integration/feishu)
181182
- [/docs/use-cases/external-integration/official_account](/docs/use-cases/external-integration/official_account)
182183
- [/docs/use-cases/external-integration/openapi](/docs/use-cases/external-integration/openapi)
184+
- [/docs/use-cases/external-integration/wecom](/docs/use-cases/external-integration/wecom)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: 'V4.12.4(进行)'
3+
description: 'FastGPT V4.12.4 更新说明'
4+
---
5+
6+
## 🚀 新增内容
7+
8+
1. 商业版支持企微发布渠道。
9+
10+
## ⚙️ 优化
11+
12+
1. 权限继承优化,子资源权限高于父级时,不会强制打断继承模式。
13+
2. Prompt 编辑器支持列表渲染。
14+
3. 数据页返回知识库列表,保持分页。
15+
4. 知识库上传文件成功后,返回对应上传目录。
16+
5. 删除应用,减少事务操作。
17+
6. 用户选择 UI。
18+
19+
## 🐛 修复
20+
21+
1. HTTP 工具空指针,导致无法编辑。
22+
2. python 代码运行,入参无法是 boolean 值。
23+
3. debug 模式下,全局变量未传递。
24+
25+
## 🔨 插件更新
26+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "4.12.x",
33
"description": "",
4-
"pages": ["4123", "4122", "4121", "4120"]
4+
"pages": ["4124", "4123", "4122", "4121", "4120"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "外部调用 FastGPT",
33
"description": "外部应用通过多种方式调用 FastGPT 功能的教程",
4-
"pages": ["openapi", "feishu", "dingtalk", "official_account"]
4+
"pages": ["openapi", "feishu", "dingtalk", "wecom", "official_account"]
55
}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
---
2+
title: 接入企微机器人教程
3+
description: FastGPT 接入企微机器人教程
4+
---
5+
6+
从 4.12.4 版本起,FastGPT 商业版支持直接接入企微机器人,无需额外的 API。
7+
8+
## 1.配置可信域名和可信IP
9+
10+
点击企微头像,打开管理企业
11+
12+
![图片](/imgs/wecom-bot-1.png)
13+
14+
在应用管理中找到"自建"-"创建应用"
15+
16+
![图片](/imgs/wecom-bot-2.png)
17+
18+
创建好应用后, 下拉, 依次配置"网页授权及JS-SDK"和"企业可信IP"
19+
20+
![图片](/imgs/wecom-bot-3.png)
21+
22+
其中, 网页授权及JS-SDK要求按照企微指引,完成域名归属认证
23+
24+
![图片](/imgs/wecom-bot-4.png)
25+
26+
企业可信IP要求为企业服务器IP, 后续企微的回调URL将请求到此IP
27+
28+
![图片](/imgs/wecom-bot-5.png)
29+
30+
## 2. 创建企业自建应用
31+
32+
前往 FastGPT ,选择想要接入的应用,在 发布渠道 页面,新建一个接入企微智能机器人的发布渠道,填写好基础信息。
33+
34+
![图片](/imgs/wecom-bot-6.png)
35+
36+
现在回到企业微信平台,找到 Corp ID, Agent ID, Token, AES Key 信息并填写回 FastGPT 平台
37+
38+
![图片](/imgs/wecom-bot-7.png)
39+
40+
在"我的企业"里找到企业 ID, 填写到 FastGPT 的 Corp ID 中
41+
42+
![图片](/imgs/wecom-bot-8.png)
43+
44+
在应用中找到 Agent Id 和 Secret, 并填写回 FastGPT
45+
46+
![图片](/imgs/wecom-bot-9.png)
47+
48+
点击"消息接收"-"设置API接收"
49+
50+
![图片](/imgs/wecom-bot-10.png)
51+
52+
随机生成或者手动输入 Token 和 Encoding-Key, 分别填写到 FastGPT 的 Token 和 AES Key 中
53+
54+
![图片](/imgs/wecom-bot-11.png)
55+
56+
填写完成后确认创建
57+
58+
然后点击请求地址, 复制页面中的链接
59+
60+
![图片](/imgs/wecom-bot-12.png)
61+
62+
回到刚才的配置详情, 将刚才复制的链接填入 URL 框中, 并点击创建
63+
64+
注意: 若复制的链接是以 "http://localhost" 开头, 需要将本地地址改为企业主体域名
65+
66+
因为企微会给填写的 URL 发送验证密文, 若 URL 为本地地址, 则本地接收不到企微的密文
67+
68+
若 URL 不是企业主体域名, 则验证会失败
69+
70+
## 3. 创建智能机器人
71+
72+
在"安全与管理" - "管理工具"页面找到"智能机器人" ( 注意: 只有企业创建者或超级管理员才有权限看到这个入口 )
73+
74+
![图片](/imgs/wecom-bot-13.png)
75+
76+
创建机器人页面,下拉,找到,点击"API模式创建"
77+
78+
![图片](/imgs/wecom-bot-14.png)
79+
80+
与刚才配置自建应用同理, 配置这三个参数
81+
82+
![图片](/imgs/wecom-bot-15.png)
83+
84+
注意: 这里的 Agent ID , 和上面的不同, 可以先随意填写一个值, 后续会根据企业微信提供的数据重新更改
85+
86+
Secret 为用户自己决定的密令
87+
88+
填写完成后确认创建
89+
90+
然后点击请求地址, 复制页面中的链接, 链接的地址也必须为企业主体域名
91+
92+
创建完成后, 找到智能机器人的配置详情
93+
94+
![图片](/imgs/wecom-bot-16.png)
95+
96+
复制 Bot ID, 填写到 FastGPT 的 Agent ID 中
97+
98+
![图片](/imgs/wecom-bot-17.png)
99+
100+
## 4. 使用智能机器人
101+
102+
在企业微信平台的"通讯录",即可找到创建的机器人,就可以发送消息了
103+
104+
![图片](/imgs/wecom-bot-18.png)
105+
106+
## FAQ
107+
108+
### 发送了消息,没响应
109+
110+
1. 检查企微机器人回调地址、权限等是否正确。
111+
2. 查看 FastGPT 对话日志,是否有对应的提问记录
112+
3. 如果没记录,则可能是应用运行报错了,可以先试试最简单的机器人。(飞书机器人无法输入全局变量、文件、图片内容)

document/data/doc-last-modified.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"document/content/docs/introduction/development/modelConfig/ppio.mdx": "2025-08-05T23:20:39+08:00",
3232
"document/content/docs/introduction/development/modelConfig/siliconCloud.mdx": "2025-08-05T23:20:39+08:00",
3333
"document/content/docs/introduction/development/openapi/chat.mdx": "2025-08-14T18:54:47+08:00",
34-
"document/content/docs/introduction/development/openapi/dataset.mdx": "2025-08-14T18:54:47+08:00",
34+
"document/content/docs/introduction/development/openapi/dataset.mdx": "2025-09-11T10:29:11+08:00",
3535
"document/content/docs/introduction/development/openapi/intro.mdx": "2025-08-14T18:54:47+08:00",
3636
"document/content/docs/introduction/development/openapi/share.mdx": "2025-08-05T23:20:39+08:00",
3737
"document/content/docs/introduction/development/proxy/cloudflare.mdx": "2025-07-23T21:35:03+08:00",
@@ -40,7 +40,7 @@
4040
"document/content/docs/introduction/development/sealos.mdx": "2025-08-05T23:20:39+08:00",
4141
"document/content/docs/introduction/guide/DialogBoxes/htmlRendering.mdx": "2025-07-23T21:35:03+08:00",
4242
"document/content/docs/introduction/guide/DialogBoxes/quoteList.mdx": "2025-07-23T21:35:03+08:00",
43-
"document/content/docs/introduction/guide/admin/sso.mdx": "2025-07-24T13:00:27+08:00",
43+
"document/content/docs/introduction/guide/admin/sso.mdx": "2025-09-08T20:07:04+08:00",
4444
"document/content/docs/introduction/guide/admin/teamMode.mdx": "2025-08-27T16:59:57+08:00",
4545
"document/content/docs/introduction/guide/course/ai_settings.mdx": "2025-07-24T13:00:27+08:00",
4646
"document/content/docs/introduction/guide/course/chat_input_guide.mdx": "2025-07-23T21:35:03+08:00",
@@ -97,15 +97,16 @@
9797
"document/content/docs/protocol/terms.en.mdx": "2025-08-03T22:37:45+08:00",
9898
"document/content/docs/protocol/terms.mdx": "2025-08-03T22:37:45+08:00",
9999
"document/content/docs/toc.en.mdx": "2025-08-04T13:42:36+08:00",
100-
"document/content/docs/toc.mdx": "2025-08-29T01:24:19+08:00",
100+
"document/content/docs/toc.mdx": "2025-09-12T12:58:39+08:00",
101101
"document/content/docs/upgrading/4-10/4100.mdx": "2025-08-02T19:38:37+08:00",
102-
"document/content/docs/upgrading/4-10/4101.mdx": "2025-08-02T19:38:37+08:00",
102+
"document/content/docs/upgrading/4-10/4101.mdx": "2025-09-08T20:07:20+08:00",
103103
"document/content/docs/upgrading/4-11/4110.mdx": "2025-08-05T23:20:39+08:00",
104104
"document/content/docs/upgrading/4-11/4111.mdx": "2025-08-07T22:49:09+08:00",
105105
"document/content/docs/upgrading/4-12/4120.mdx": "2025-09-07T14:41:48+08:00",
106106
"document/content/docs/upgrading/4-12/4121.mdx": "2025-09-07T14:41:48+08:00",
107107
"document/content/docs/upgrading/4-12/4122.mdx": "2025-09-07T14:41:48+08:00",
108-
"document/content/docs/upgrading/4-12/4123.mdx": "2025-09-07T14:41:48+08:00",
108+
"document/content/docs/upgrading/4-12/4123.mdx": "2025-09-07T20:55:14+08:00",
109+
"document/content/docs/upgrading/4-12/4124.mdx": "2025-09-13T01:34:04+08:00",
109110
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
110111
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
111112
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",
@@ -185,5 +186,6 @@
185186
"document/content/docs/use-cases/external-integration/feishu.mdx": "2025-07-24T14:23:04+08:00",
186187
"document/content/docs/use-cases/external-integration/official_account.mdx": "2025-08-05T23:20:39+08:00",
187188
"document/content/docs/use-cases/external-integration/openapi.mdx": "2025-08-14T18:54:47+08:00",
189+
"document/content/docs/use-cases/external-integration/wecom.mdx": "2025-09-12T12:58:39+08:00",
188190
"document/content/docs/use-cases/index.mdx": "2025-07-24T14:23:04+08:00"
189191
}
111 KB
Loading
304 KB
Loading
162 KB
Loading

0 commit comments

Comments
 (0)