Fix: An error occurred when deleting a new conversation #3898 (#3900)

### What problem does this PR solve?

Fix: An error occurred when deleting a new conversation #3898

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-12-06 14:24:41 +08:00 committed by GitHub
parent f576c555e4
commit f189452446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 14 deletions

View File

@ -160,7 +160,7 @@ export default {
delimiterTip: 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".', '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', 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', 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'.`, 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', autoQuestions: 'Auto-question',

View File

@ -156,7 +156,7 @@ export default {
delimiterTip: delimiterTip:
'支援多字元作為分隔符,多字元分隔符用`包裹。如配置成這樣:\n`##`;那麼就會用換行,兩個#以及分號先對文字進行分割,然後按照「 token number」大小進行拼裝。', '支援多字元作為分隔符,多字元分隔符用`包裹。如配置成這樣:\n`##`;那麼就會用換行,兩個#以及分號先對文字進行分割,然後按照「 token number」大小進行拼裝。',
html4excel: '表格轉HTML', html4excel: '表格轉HTML',
html4excelTip: `Excel 是否會被解析為 HTML 表格。如果為 FALSEExcel 中的每一行都會形成一個區塊`, html4excelTip: `啟用後,電子表格將解析為 HTML 表格,一張表格最多 256 行。否則,會按行解析成鍵值對`,
autoKeywords: '自動關鍵字', autoKeywords: '自動關鍵字',
autoKeywordsTip: `在查詢此類關鍵字時,為每個區塊提取 N 個關鍵字以提高其排名分數。在「系統模型設定」中設定的 LLM 將消耗額外的 token。您可以在區塊清單中查看結果。 `, autoKeywordsTip: `在查詢此類關鍵字時,為每個區塊提取 N 個關鍵字以提高其排名分數。在「系統模型設定」中設定的 LLM 將消耗額外的 token。您可以在區塊清單中查看結果。 `,
autoQuestions: '自動問題', autoQuestions: '自動問題',

View File

@ -157,7 +157,7 @@ export default {
delimiterTip: delimiterTip:
'支持多字符作为分隔符,多字符分隔符用`包裹。如配置成这样:\n`##`;那么就会用换行,两个#以及分号先对文本进行分割,然后按照“ token number”大小进行拼装。', '支持多字符作为分隔符,多字符分隔符用`包裹。如配置成这样:\n`##`;那么就会用换行,两个#以及分号先对文本进行分割,然后按照“ token number”大小进行拼装。',
html4excel: '表格转HTML', html4excel: '表格转HTML',
html4excelTip: `Excel 是否将被解析为 HTML 表。如果为 FALSEExcel 中的每一行都将形成一个块`, html4excelTip: `开启后电子表格会被解析为 HTML 表格,每张表格最多 256 行,否则会按行解析为键值对`,
autoKeywords: '自动关键词', autoKeywords: '自动关键词',
autoKeywordsTip: `在查询此类关键词时,为每个块提取 N 个关键词以提高其排名得分。在“系统模型设置”中设置的 LLM 将消耗额外的 token。您可以在块列表中查看结果。`, autoKeywordsTip: `在查询此类关键词时,为每个块提取 N 个关键词以提高其排名得分。在“系统模型设置”中设置的 LLM 将消耗额外的 token。您可以在块列表中查看结果。`,
autoQuestions: '自动问题', autoQuestions: '自动问题',

View File

@ -328,17 +328,19 @@ const Chat = () => {
{x.name} {x.name}
</Text> </Text>
</div> </div>
{conversationActivated === x.id && x.id !== '' && ( {conversationActivated === x.id &&
<section> x.id !== '' &&
<Dropdown !x.is_new && (
menu={{ items: buildConversationItems(x.id) }} <section>
> <Dropdown
<ChatAppCube menu={{ items: buildConversationItems(x.id) }}
className={styles.cubeIcon} >
></ChatAppCube> <ChatAppCube
</Dropdown> className={styles.cubeIcon}
</section> ></ChatAppCube>
)} </Dropdown>
</section>
)}
</Flex> </Flex>
</Card> </Card>
))} ))}