Merge branch 'labring:main' into local

This commit is contained in:
Theresa
2025-03-26 15:54:01 +08:00
committed by GitHub
26 changed files with 1427 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ const QuoteList = React.memo(function QuoteList({
rawSearch: SearchDataResponseItemType[];
}) {
const theme = useTheme();
const { chatId, appId, outLinkAuthData } = useChatStore();
const { appId, outLinkAuthData } = useChatStore();
const RawSourceBoxProps = useContextSelector(ChatBoxContext, (v) => ({
chatItemDataId,
@@ -39,10 +39,11 @@ const QuoteList = React.memo(function QuoteList({
collectionIdList: [...new Set(rawSearch.map((item) => item.collectionId))],
chatItemDataId,
appId,
chatId,
chatId: RawSourceBoxProps.chatId,
...outLinkAuthData
}),
{
refreshDeps: [rawSearch, RawSourceBoxProps.chatId],
manual: false
}
);

View File

@@ -3,7 +3,7 @@ import { ChatHistoryItemResType, ChatItemType } from '@fastgpt/global/core/chat/
import { SearchDataResponseItemType } from '@fastgpt/global/core/dataset/type';
import { FlowNodeTypeEnum } from '@fastgpt/global/core/workflow/node/constant';
const isLLMNode = (item: ChatHistoryItemResType) =>
export const isLLMNode = (item: ChatHistoryItemResType) =>
item.moduleType === FlowNodeTypeEnum.chatNode || item.moduleType === FlowNodeTypeEnum.tools;
export function transformPreviewHistories(