mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
优化建议模式;修复多索引训练失败问题 (#1043)
* doc * Optimize possible null Pointers and parts of Ux * fix: mulity index training error
This commit is contained in:
@@ -44,7 +44,8 @@ export async function insertData2Dataset({
|
||||
indexes =
|
||||
Array.isArray(indexes) && indexes.length > 0
|
||||
? indexes.map((index) => ({
|
||||
...index,
|
||||
// @ts-ignore
|
||||
...index.toObject(),
|
||||
dataId: undefined,
|
||||
defaultIndex: index.text.trim() === qaStr
|
||||
}))
|
||||
|
Reference in New Issue
Block a user