mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
fix: load member list (#2536)
* fix: load member list * fix: extract field type error * fix: workflow runtime error * fix: ts
This commit is contained in:
@@ -27,6 +27,7 @@ export function addStatisticalDataToHistoryItem(historyItem: ChatItemType) {
|
||||
return item;
|
||||
})
|
||||
.flat() || [];
|
||||
|
||||
return {
|
||||
...historyItem,
|
||||
llmModuleAccount: flatResData.filter(isLLMNode).length,
|
||||
@@ -36,7 +37,7 @@ export function addStatisticalDataToHistoryItem(historyItem: ChatItemType) {
|
||||
.flat()
|
||||
.filter(Boolean) as SearchDataResponseItemType[],
|
||||
totalRunningTime: Number(
|
||||
flatResData.reduce((sum, item) => sum + (item.runningTime || 0), 0).toFixed(2)
|
||||
historyItem.responseData?.reduce((sum, item) => sum + (item.runningTime || 0), 0).toFixed(2)
|
||||
),
|
||||
historyPreviewLength: flatResData.find(isLLMNode)?.historyPreview?.length
|
||||
};
|
||||
|
Reference in New Issue
Block a user