mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
remove code (#2735)
This commit is contained in:
@@ -183,7 +183,7 @@ export async function pushDataListToTrainingQueue({
|
||||
});
|
||||
console.log('failed', failedDocuments);
|
||||
}
|
||||
console.log(startIndex, '===');
|
||||
|
||||
// 对于失败的文档,尝试单独插入
|
||||
await MongoDatasetTraining.create(failedDocuments, { session });
|
||||
|
||||
|
@@ -107,7 +107,7 @@ const completions = async ({
|
||||
.join('\n------\n'),
|
||||
history: histories
|
||||
.map((item) => `${item.obj}:${chatValue2RuntimePrompt(item.value).text}`)
|
||||
.join('------'),
|
||||
.join('\n------\n'),
|
||||
question: userChatInput
|
||||
})
|
||||
}
|
||||
|
@@ -159,8 +159,9 @@ export async function dispatchDatasetSearch(
|
||||
[DispatchNodeResponseKeyEnum.nodeResponse]: responseData,
|
||||
nodeDispatchUsages,
|
||||
[DispatchNodeResponseKeyEnum.toolResponses]: searchRes.map((item) => ({
|
||||
id: item.id,
|
||||
text: `${item.q}\n${item.a}`.trim()
|
||||
sourceName: item.sourceName,
|
||||
updateTime: item.updateTime,
|
||||
content: `${item.q}\n${item.a}`.trim()
|
||||
}))
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user