From 2104e738893795758fe89991dbcb4011937b85b6 Mon Sep 17 00:00:00 2001 From: bill Date: Fri, 6 Dec 2024 14:19:55 +0800 Subject: [PATCH] Fix: An error occurred when deleting a new conversation #3898 --- web/src/locales/en.ts | 2 +- web/src/locales/zh-traditional.ts | 2 +- web/src/locales/zh.ts | 2 +- web/src/pages/chat/index.tsx | 24 +++++++++++++----------- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 585a6f78e10..032295586f3 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -160,7 +160,7 @@ export default { delimiterTip: 'Supports multiple characters as separators, and the multiple character separators are wrapped with `. For example, if it is configured like this: \n`##`; then the text will be separated by line breaks, two #s and a semicolon, and then assembled according to the size of the "token number".', html4excel: 'Excel to HTML', - html4excelTip: `When enabled, the spreadsheet will be parsed into HTML tables; otherwise, it will be parsed into key-value pairs by row.`, + html4excelTip: `When enabled, the spreadsheet will be parsed into HTML tables, and at most 256 rows for one table. Otherwise, it will be parsed into key-value pairs by row.`, autoKeywords: 'Auto-keyword', autoKeywordsTip: `Extract N keywords for each chunk to increase their ranking for queries containing those keywords. You can check or update the added keywords for a chunk from the chunk list. Be aware that extra tokens will be consumed by the LLM specified in 'System model settings'.`, autoQuestions: 'Auto-question', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index 75e2f3722e9..ed537374194 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -156,7 +156,7 @@ export default { delimiterTip: '支援多字元作為分隔符,多字元分隔符用`包裹。如配置成這樣:\n`##`;那麼就會用換行,兩個#以及分號先對文字進行分割,然後按照「 token number」大小進行拼裝。', html4excel: '表格轉HTML', - html4excelTip: `Excel 是否會被解析為 HTML 表格。如果為 FALSE,Excel 中的每一行都會形成一個區塊。`, + html4excelTip: `啟用後,電子表格將解析為 HTML 表格,一張表格最多 256 行。否則,會按行解析成鍵值對。`, autoKeywords: '自動關鍵字', autoKeywordsTip: `在查詢此類關鍵字時,為每個區塊提取 N 個關鍵字以提高其排名分數。在「系統模型設定」中設定的 LLM 將消耗額外的 token。您可以在區塊清單中查看結果。 `, autoQuestions: '自動問題', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index e30912f6156..b9df9d07c8b 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -157,7 +157,7 @@ export default { delimiterTip: '支持多字符作为分隔符,多字符分隔符用`包裹。如配置成这样:\n`##`;那么就会用换行,两个#以及分号先对文本进行分割,然后按照“ token number”大小进行拼装。', html4excel: '表格转HTML', - html4excelTip: `Excel 是否将被解析为 HTML 表。如果为 FALSE,Excel 中的每一行都将形成一个块。`, + html4excelTip: `开启后电子表格会被解析为 HTML 表格,每张表格最多 256 行,否则会按行解析为键值对。`, autoKeywords: '自动关键词', autoKeywordsTip: `在查询此类关键词时,为每个块提取 N 个关键词以提高其排名得分。在“系统模型设置”中设置的 LLM 将消耗额外的 token。您可以在块列表中查看结果。`, autoQuestions: '自动问题', diff --git a/web/src/pages/chat/index.tsx b/web/src/pages/chat/index.tsx index 550a81381f1..b461f004661 100644 --- a/web/src/pages/chat/index.tsx +++ b/web/src/pages/chat/index.tsx @@ -328,17 +328,19 @@ const Chat = () => { {x.name} - {conversationActivated === x.id && x.id !== '' && ( -
- - - -
- )} + {conversationActivated === x.id && + x.id !== '' && + !x.is_new && ( +
+ + + +
+ )} ))}