Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
4f86a059
authored
Mar 27, 2025
by
Archer
Committed by
GitHub
Mar 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: update test model ux (#4375)
* perf: update test model ux * feat: oceanbase vector db doc
parent
14895bbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
docSite/content/zh-cn/docs/development/upgrading/492.md
+8
-1
projects/app/src/pageComponents/account/model/Channel/ModelTest.tsx
+8
-12
No files found.
docSite/content/zh-cn/docs/development/upgrading/492.md
View file @
4f86a059
...
@@ -8,6 +8,11 @@ weight: 798
...
@@ -8,6 +8,11 @@ weight: 798
---
---
## 更新指南
## 更新指南
### 配置参数变更
修改
`config.json`
文件中
`systemEnv.pgHNSWEfSearch`
参数名,改成
`hnswEfSearch`
。
商业版用户直接在后台
`系统配置-基础配置`
中进行变更。
### SSO 迁移
### SSO 迁移
使用了 SSO 或成员同步的商业版用户,并且是对接
`钉钉`
、
`企微`
的,需要迁移已有的 SSO 相关配置:
使用了 SSO 或成员同步的商业版用户,并且是对接
`钉钉`
、
`企微`
的,需要迁移已有的 SSO 相关配置:
...
@@ -29,6 +34,7 @@ weight: 798
...
@@ -29,6 +34,7 @@ weight: 798
3.
外部变量改名:自定义变量。 并且支持在测试时调试,在分享链接中,该变量直接隐藏。
3.
外部变量改名:自定义变量。 并且支持在测试时调试,在分享链接中,该变量直接隐藏。
4.
集合同步时,支持同步修改标题。
4.
集合同步时,支持同步修改标题。
5.
团队成员管理重构,抽离主流 IM SSO(企微、飞书、钉钉),并支持通过自定义 SSO 接入 FastGPT。同时完善与外部系统的成员同步。
5.
团队成员管理重构,抽离主流 IM SSO(企微、飞书、钉钉),并支持通过自定义 SSO 接入 FastGPT。同时完善与外部系统的成员同步。
6.
支持
`oceanbase`
向量数据库。填写环境变量
`OCEANBASE_URL`
即可。
## ⚙️ 优化
## ⚙️ 优化
...
@@ -41,7 +47,8 @@ weight: 798
...
@@ -41,7 +47,8 @@ weight: 798
7.
工作流节点数组类型,自动进行 JSON parse 解析 string 输入。
7.
工作流节点数组类型,自动进行 JSON parse 解析 string 输入。
8.
AI proxy 日志优化,去除重试失败的日志,仅保留最后一份错误日志。
8.
AI proxy 日志优化,去除重试失败的日志,仅保留最后一份错误日志。
9.
个人信息和通知展示优化。
9.
个人信息和通知展示优化。
10.
分块算法小调整:
10.
模型测试 loading 动画优化。
11.
分块算法小调整:
*
跨处理符号之间连续性更强。
*
跨处理符号之间连续性更强。
*
代码块分割时,用 LLM 模型上下文作为分块大小,尽可能保证代码块完整性。
*
代码块分割时,用 LLM 模型上下文作为分块大小,尽可能保证代码块完整性。
*
表格分割时,用 LLM 模型上下文作为分块大小,尽可能保证表格完整性。
*
表格分割时,用 LLM 模型上下文作为分块大小,尽可能保证表格完整性。
...
...
projects/app/src/pageComponents/account/model/Channel/ModelTest.tsx
View file @
4f86a059
...
@@ -97,14 +97,13 @@ const ModelTest = ({
...
@@ -97,14 +97,13 @@ const ModelTest = ({
const
{
runAsync
:
onStartTest
,
loading
:
isAnyModelLoading
}
=
useRequest2
(
const
{
runAsync
:
onStartTest
,
loading
:
isAnyModelLoading
}
=
useRequest2
(
async
()
=>
{
async
()
=>
{
try
{
let
errorNum
=
0
;
let
errorNum
=
0
;
setTestModelList
((
prev
)
=>
prev
.
map
((
item
)
=>
({
...
item
,
loading
:
true
})));
const
testModel
=
async
(
model
:
string
)
=>
{
const
testModel
=
async
(
model
:
string
)
=>
{
setTestModelList
((
prev
)
=>
setTestModelList
((
prev
)
=>
prev
.
map
((
item
)
=>
prev
.
map
((
item
)
=>
item
.
model
===
model
item
.
model
===
model
?
{
...
item
,
status
:
'running'
,
message
:
''
}
:
item
?
{
...
item
,
status
:
'running'
,
message
:
''
,
loading
:
true
}
:
item
)
)
);
);
const
start
=
Date
.
now
();
const
start
=
Date
.
now
();
...
@@ -142,9 +141,6 @@ const ModelTest = ({
...
@@ -142,9 +141,6 @@ const ModelTest = ({
title
:
t
(
'account_model:test_failed'
,
{
num
:
errorNum
})
title
:
t
(
'account_model:test_failed'
,
{
num
:
errorNum
})
});
});
}
}
}
catch
(
error
)
{
console
.
error
(
'Error during model testing:'
,
error
);
}
},
},
{
{
refreshDeps
:
[
testModelList
]
refreshDeps
:
[
testModelList
]
...
@@ -187,6 +183,8 @@ const ModelTest = ({
...
@@ -187,6 +183,8 @@ const ModelTest = ({
}
}
);
);
const
isTesting
=
isAnyModelLoading
||
testingOneModel
;
return
(
return
(
<
MyModal
<
MyModal
iconSrc=
{
'core/chat/sendLight'
}
iconSrc=
{
'core/chat/sendLight'
}
...
@@ -230,12 +228,14 @@ const ModelTest = ({
...
@@ -230,12 +228,14 @@ const ModelTest = ({
</
Flex
>
</
Flex
>
</
Td
>
</
Td
>
<
Td
>
<
Td
>
{
(
!
isAnyModelLoading
||
item
.
loading
)
&&
(
<
MyIconButton
<
MyIconButton
isLoading=
{
item
.
loading
}
isLoading=
{
item
.
loading
}
icon=
{
'core/chat/sendLight'
}
icon=
{
'core/chat/sendLight'
}
tip=
{
t
(
'account:model.test_model'
)
}
tip=
{
t
(
'account:model.test_model'
)
}
onClick=
{
()
=>
onTestOneModel
(
item
.
model
)
}
onClick=
{
()
=>
onTestOneModel
(
item
.
model
)
}
/>
/>
)
}
</
Td
>
</
Td
>
</
Tr
>
</
Tr
>
);
);
...
@@ -248,11 +248,7 @@ const ModelTest = ({
...
@@ -248,11 +248,7 @@ const ModelTest = ({
<
Button
mr=
{
4
}
variant=
{
'whiteBase'
}
onClick=
{
onClose
}
>
<
Button
mr=
{
4
}
variant=
{
'whiteBase'
}
onClick=
{
onClose
}
>
{
t
(
'common:common.Cancel'
)
}
{
t
(
'common:common.Cancel'
)
}
</
Button
>
</
Button
>
<
Button
<
Button
isLoading=
{
isTesting
}
variant=
{
'primary'
}
onClick=
{
onStartTest
}
>
isLoading=
{
isAnyModelLoading
||
testingOneModel
}
variant=
{
'primary'
}
onClick=
{
onStartTest
}
>
{
t
(
'account_model:start_test'
,
{
num
:
testModelList
.
length
})
}
{
t
(
'account_model:start_test'
,
{
num
:
testModelList
.
length
})
}
</
Button
>
</
Button
>
</
ModalFooter
>
</
ModalFooter
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment