-
Notifications
You must be signed in to change notification settings - Fork 6.7k
V4.12.4 features #5626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
V4.12.4 features #5626
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
e10804c
fix: push again, user select option button and form input radio conte…
fishwww-ww 79b03fe
ui
c121914yu b21a5d9
del collection api adapt
c121914yu 7b48c11
refactor: inherit permission (#5529)
FinleyGe 3c03709
prompt editor add list plugin (#5620)
newfish-cmyk be290f8
fix: fe & member list (#5619)
FinleyGe 676062a
perf: test code
c121914yu d1d9742
doc
c121914yu 2540e26
fix debug variables (#5617)
newfish-cmyk 813cb7d
perf: member ui
c121914yu e145d32
fix: inherit bug (#5624)
FinleyGe 36ad582
perf: auto coupon
c121914yu 9e31936
chore: upgrade script & get infos avatar (#5625)
FinleyGe f1d44de
feat: support WecomRobot publish, and fix AesKey can not save bug (#5…
fishwww-ww c6646aa
remove test
c121914yu abeb41a
rename init shell
c121914yu fdd58aa
feat: collection page store
c121914yu 873ccdc
reload sandbox
c121914yu d2db8e5
pysandbox
c121914yu 2f2fc5e
remove log
c121914yu 30fac83
chore: remove useless code (#5629)
FinleyGe 997a129
fix: copy node
c121914yu 666daab
update doc
c121914yu 4e52e54
fix(permission): some bug (#5632)
FinleyGe f588c02
perf: del app;i18n;save chat
c121914yu d86a4ce
fix: test
c121914yu 5e5d688
i18n
c121914yu cc77188
fix: sumper overflow return OwnerRoleVal (#5633)
FinleyGe bae0d58
remove invalid code
c121914yu 30b668f
fix: scroll
c121914yu 0fd2a3f
fix: objectId
c121914yu 2a119ba
update next
c121914yu d1c8b25
update package
c121914yu b65a8ec
object id
c121914yu 52b2ab0
mock redis
c121914yu 995c30d
feat: add redis append to resolve wecom stream response (#5643)
fishwww-ww 65b2200
cache per
c121914yu 132fc29
fix(test): init team sub when creating mocked user (#5646)
FinleyGe dc7d02b
fix: button is not vertically centered (#5647)
fishwww-ww 75db87f
doc
c121914yu 4b70084
fix: gridFs objectId (#5649)
FinleyGe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| title: 'V4.12.4(进行)' | ||
| description: 'FastGPT V4.12.4 更新说明' | ||
| --- | ||
|
|
||
| ## 🚀 新增内容 | ||
|
|
||
| 1. 商业版支持企微发布渠道。 | ||
|
|
||
| ## ⚙️ 优化 | ||
|
|
||
| 1. 权限继承优化,子资源权限高于父级时,不会强制打断继承模式。 | ||
| 2. Prompt 编辑器支持列表渲染。 | ||
| 3. 数据页返回知识库列表,保持分页。 | ||
| 4. 知识库上传文件成功后,返回对应上传目录。 | ||
| 5. 删除应用,减少事务操作。 | ||
| 6. 用户选择 UI。 | ||
|
|
||
| ## 🐛 修复 | ||
|
|
||
| 1. HTTP 工具空指针,导致无法编辑。 | ||
| 2. python 代码运行,入参无法是 boolean 值。 | ||
| 3. debug 模式下,全局变量未传递。 | ||
|
|
||
| ## 🔨 插件更新 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "title": "4.12.x", | ||
| "description": "", | ||
| "pages": ["4123", "4122", "4121", "4120"] | ||
| "pages": ["4124", "4123", "4122", "4121", "4120"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "title": "外部调用 FastGPT", | ||
| "description": "外部应用通过多种方式调用 FastGPT 功能的教程", | ||
| "pages": ["openapi", "feishu", "dingtalk", "official_account"] | ||
| "pages": ["openapi", "feishu", "dingtalk", "wecom", "official_account"] | ||
| } |
112 changes: 112 additions & 0 deletions
112
document/content/docs/use-cases/external-integration/wecom.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| --- | ||
| title: 接入企微机器人教程 | ||
| description: FastGPT 接入企微机器人教程 | ||
| --- | ||
|
|
||
| 从 4.12.4 版本起,FastGPT 商业版支持直接接入企微机器人,无需额外的 API。 | ||
|
|
||
| ## 1.配置可信域名和可信IP | ||
|
|
||
| 点击企微头像,打开管理企业 | ||
|
|
||
|  | ||
|
|
||
| 在应用管理中找到"自建"-"创建应用" | ||
|
|
||
|  | ||
|
|
||
| 创建好应用后, 下拉, 依次配置"网页授权及JS-SDK"和"企业可信IP" | ||
|
|
||
|  | ||
|
|
||
| 其中, 网页授权及JS-SDK要求按照企微指引,完成域名归属认证 | ||
|
|
||
|  | ||
|
|
||
| 企业可信IP要求为企业服务器IP, 后续企微的回调URL将请求到此IP | ||
|
|
||
|  | ||
|
|
||
| ## 2. 创建企业自建应用 | ||
|
|
||
| 前往 FastGPT ,选择想要接入的应用,在 发布渠道 页面,新建一个接入企微智能机器人的发布渠道,填写好基础信息。 | ||
|
|
||
|  | ||
|
|
||
| 现在回到企业微信平台,找到 Corp ID, Agent ID, Token, AES Key 信息并填写回 FastGPT 平台 | ||
|
|
||
|  | ||
|
|
||
| 在"我的企业"里找到企业 ID, 填写到 FastGPT 的 Corp ID 中 | ||
|
|
||
|  | ||
|
|
||
| 在应用中找到 Agent Id 和 Secret, 并填写回 FastGPT | ||
|
|
||
|  | ||
|
|
||
| 点击"消息接收"-"设置API接收" | ||
|
|
||
|  | ||
|
|
||
| 随机生成或者手动输入 Token 和 Encoding-Key, 分别填写到 FastGPT 的 Token 和 AES Key 中 | ||
|
|
||
|  | ||
|
|
||
| 填写完成后确认创建 | ||
|
|
||
| 然后点击请求地址, 复制页面中的链接 | ||
|
|
||
|  | ||
|
|
||
| 回到刚才的配置详情, 将刚才复制的链接填入 URL 框中, 并点击创建 | ||
|
|
||
| 注意: 若复制的链接是以 "http://localhost" 开头, 需要将本地地址改为企业主体域名 | ||
|
|
||
| 因为企微会给填写的 URL 发送验证密文, 若 URL 为本地地址, 则本地接收不到企微的密文 | ||
|
|
||
| 若 URL 不是企业主体域名, 则验证会失败 | ||
|
|
||
| ## 3. 创建智能机器人 | ||
|
|
||
| 在"安全与管理" - "管理工具"页面找到"智能机器人" ( 注意: 只有企业创建者或超级管理员才有权限看到这个入口 ) | ||
|
|
||
|  | ||
|
|
||
| 创建机器人页面,下拉,找到,点击"API模式创建" | ||
|
|
||
|  | ||
|
|
||
| 与刚才配置自建应用同理, 配置这三个参数 | ||
|
|
||
|  | ||
|
|
||
| 注意: 这里的 Agent ID , 和上面的不同, 可以先随意填写一个值, 后续会根据企业微信提供的数据重新更改 | ||
|
|
||
| Secret 为用户自己决定的密令 | ||
|
|
||
| 填写完成后确认创建 | ||
|
|
||
| 然后点击请求地址, 复制页面中的链接, 链接的地址也必须为企业主体域名 | ||
|
|
||
| 创建完成后, 找到智能机器人的配置详情 | ||
|
|
||
|  | ||
|
|
||
| 复制 Bot ID, 填写到 FastGPT 的 Agent ID 中 | ||
|
|
||
|  | ||
|
|
||
| ## 4. 使用智能机器人 | ||
|
|
||
| 在企业微信平台的"通讯录",即可找到创建的机器人,就可以发送消息了 | ||
|
|
||
|  | ||
|
|
||
| ## FAQ | ||
|
|
||
| ### 发送了消息,没响应 | ||
|
|
||
| 1. 检查企微机器人回调地址、权限等是否正确。 | ||
| 2. 查看 FastGPT 对话日志,是否有对应的提问记录 | ||
| 3. 如果没记录,则可能是应用运行报错了,可以先试试最简单的机器人。(飞书机器人无法输入全局变量、文件、图片内容) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,33 @@ | ||
| import type { UpdateAppCollaboratorBody } from 'core/app/collaborator'; | ||
| import type { RequireOnlyOne } from '../../common/type/utils'; | ||
| import { RequireAtLeastOne } from '../../common/type/utils'; | ||
| import type { Permission } from './controller'; | ||
| import type { PermissionValueType } from './type'; | ||
| import type { PermissionValueType, RoleValueType } from './type'; | ||
|
|
||
| export type CollaboratorItemType = { | ||
| teamId: string; | ||
| permission: Permission; | ||
| name: string; | ||
| avatar: string; | ||
| } & RequireOnlyOne<{ | ||
| export type CollaboratorIdType = RequireOnlyOne<{ | ||
| tmbId: string; | ||
| groupId: string; | ||
| orgId: string; | ||
| }>; | ||
|
|
||
| export type UpdateClbPermissionProps<addOnly = false> = { | ||
| members?: string[]; | ||
| groups?: string[]; | ||
| orgs?: string[]; | ||
| } & (addOnly extends true | ||
| ? {} | ||
| : { | ||
| permission: PermissionValueType; | ||
| }); | ||
| export type CollaboratorItemDetailType = { | ||
| teamId: string; | ||
| permission: Permission; | ||
| name: string; | ||
| avatar: string; | ||
| } & CollaboratorIdType; | ||
|
|
||
| export type CollaboratorItemType = { | ||
| permission: PermissionValueType; | ||
| } & CollaboratorIdType; | ||
|
|
||
| export type DeletePermissionQuery = RequireOnlyOne<{ | ||
| tmbId?: string; | ||
| groupId?: string; | ||
| orgId?: string; | ||
| }>; | ||
| export type UpdateClbPermissionProps = { | ||
| collaborators: CollaboratorItemType[]; | ||
| }; | ||
|
|
||
| export type DeletePermissionQuery = CollaboratorIdType; | ||
|
|
||
| export type CollaboratorListType = { | ||
| clbs: CollaboratorItemDetailType[]; | ||
| parentClbs?: CollaboratorItemDetailType[]; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Empty String Conversion Yields Null
Converting an empty string to a number now returns
nullinstead ofundefined. This change can break downstream code, as JavaScript treatsnullandundefineddifferently, potentially affecting conditional logic or strict equality checks that rely on the originalundefinedbehavior.