diff --git a/packages/web/i18n/en/common.json b/packages/web/i18n/en/common.json index 2bf802d22..6c87d1c45 100644 --- a/packages/web/i18n/en/common.json +++ b/packages/web/i18n/en/common.json @@ -1103,9 +1103,11 @@ "support.outlink.Max usage points tip": "The maximum number of points allowed for this link. It cannot be used after exceeding the limit. -1 means unlimited.", "support.outlink.Usage points": "Points Consumption", "support.outlink.share.Chat_quote_reader": "Full text reader", + "support.outlink.share.Download source tips": "Download the original file of the knowledge base, or jump to the source website", "support.outlink.share.Full_text tips": "Allows reading of the complete dataset from which the referenced fragment is derived", "support.outlink.share.Response Quote": "View quoted snippets", "support.outlink.share.Response Quote tips": "Return quoted content in the share link, but do not allow users to download the original document", + "support.outlink.share.Show full text tips": "View the complete file to which the quoted content belongs. You cannot view the original file or jump to the source website.", "support.outlink.share.running_node": "Running node", "support.outlink.share.show_complete_quote": "View original source", "support.outlink.share.show_complete_quote_tips": "View and download the complete citation document, or jump to the citation website", diff --git a/packages/web/i18n/zh-CN/common.json b/packages/web/i18n/zh-CN/common.json index 70fe9cf02..591463c43 100644 --- a/packages/web/i18n/zh-CN/common.json +++ b/packages/web/i18n/zh-CN/common.json @@ -1112,11 +1112,11 @@ "support.outlink.Max usage points tip": "该链接最多允许使用多少积分,超出后将无法使用。-1 代表无限制。", "support.outlink.Usage points": "积分消耗", "support.outlink.share.Chat_quote_reader": "全文阅读器", - "support.outlink.share.Download source tips": "下载或打开来源的原始文件", + "support.outlink.share.Download source tips": "下载知识库原文件,或跳转来源网站", "support.outlink.share.Full_text tips": "允许阅读该引用片段来源的完整数据集", "support.outlink.share.Response Quote": "查看引用片段", "support.outlink.share.Response Quote tips": "查看知识库搜索的引用内容,不可查看完整引用文档或跳转引用网站", - "support.outlink.share.Show full text tips": "查看引用的完整内容,包括全文、图片等详细信息", + "support.outlink.share.Show full text tips": "查看引用内容所属的完整文件,不可查看原文件或跳转来来源网站", "support.outlink.share.running_node": "运行节点", "support.outlink.share.show_complete_quote": "查看来源原文", "support.outlink.share.show_complete_quote_tips": "查看及下载完整引用文档,或跳转引用网站", diff --git a/packages/web/i18n/zh-Hant/common.json b/packages/web/i18n/zh-Hant/common.json index 7a4c37745..9dfcb9544 100644 --- a/packages/web/i18n/zh-Hant/common.json +++ b/packages/web/i18n/zh-Hant/common.json @@ -1100,9 +1100,11 @@ "support.outlink.Max usage points tip": "此連結最多允許使用多少點數,超出後將無法使用。-1 代表無限制。", "support.outlink.Usage points": "點數消耗", "support.outlink.share.Chat_quote_reader": "全文閱讀器", + "support.outlink.share.Download source tips": "下載知識庫原文件,或跳轉來源網站", "support.outlink.share.Full_text tips": "允許閱讀該引用片段來源的完整資料集", "support.outlink.share.Response Quote": "查看引用片段", "support.outlink.share.Response Quote tips": "在分享連結中回傳引用內容,但不允許使用者下載原始文件", + "support.outlink.share.Show full text tips": "查看引用內容所屬的完整文件,不可查看原文件或跳轉來來源網站", "support.outlink.share.running_node": "執行節點", "support.outlink.share.show_complete_quote": "檢視原始內容", "support.outlink.share.show_complete_quote_tips": "檢視及下載完整引用文件,或跳轉至引用網站", diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx index ff13c8a5c..868f05bc0 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx @@ -56,21 +56,21 @@ const ResponseTags = ({ historyPreviewLength = 0, toolCiteLinks = [] } = useMemo(() => { - if (!isShowCite) - return { - totalQuoteList: [], - llmModuleAccount: 0, - historyPreviewLength: 0, - toolCiteLinks: [] - }; - return addStatisticalDataToHistoryItem(historyItem); + return { + ...addStatisticalDataToHistoryItem(historyItem), + ...(isShowCite + ? { + totalQuoteList: [] + } + : {}) + }; }, [historyItem, isShowCite]); const [quoteFolded, setQuoteFolded] = useState(true); const chatType = useContextSelector(ChatBoxContext, (v) => v.chatType); - const notSharePage = useMemo(() => chatType !== 'share' && isShowCite, [chatType, isShowCite]); + const notSharePage = useMemo(() => chatType !== 'share', [chatType]); const { isOpen: isOpenWholeModal, diff --git a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx index a57a8424e..88d7a3511 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx @@ -12,6 +12,7 @@ import { import type { PlaygroundVisibilityConfigType } from '@fastgpt/global/support/outLink/type'; import MyIcon from '@fastgpt/web/components/common/Icon'; import { useCopyData } from '@fastgpt/web/hooks/useCopyData'; +import { ChatSidebarPaneEnum } from '@/pageComponents/chat/constants'; const defaultPlaygroundVisibilityForm: PlaygroundVisibilityConfigType = { showRunningStatus: true, @@ -34,7 +35,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => { const playgroundLink = useMemo(() => { if (typeof window !== 'undefined') { - return `${window.location.origin}/chat?appId=${appId}`; + return `${window.location.origin}/chat?appId=${appId}&pane=${ChatSidebarPaneEnum.RECENTLY_USED_APPS}`; } return ''; }, [appId]);