mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Merge pull request #1660 from Yidadaa/bugfix-0520
feat: close #1382 only clear memory btn in chat config
This commit is contained in:
		@@ -121,9 +121,13 @@ export function SessionConfigModel(props: { onClose: () => void }) {
 | 
			
		||||
            icon={<ResetIcon />}
 | 
			
		||||
            bordered
 | 
			
		||||
            text={Locale.Chat.Config.Reset}
 | 
			
		||||
            onClick={() =>
 | 
			
		||||
              confirm(Locale.Memory.ResetConfirm) && chatStore.resetSession()
 | 
			
		||||
            }
 | 
			
		||||
            onClick={() => {
 | 
			
		||||
              if (confirm(Locale.Memory.ResetConfirm)) {
 | 
			
		||||
                chatStore.updateCurrentSession(
 | 
			
		||||
                  (session) => (session.memoryPrompt = ""),
 | 
			
		||||
                );
 | 
			
		||||
              }
 | 
			
		||||
            }}
 | 
			
		||||
          />,
 | 
			
		||||
          <IconButton
 | 
			
		||||
            key="copy"
 | 
			
		||||
 
 | 
			
		||||
@@ -31,8 +31,8 @@ const cn = {
 | 
			
		||||
    },
 | 
			
		||||
    Send: "发送",
 | 
			
		||||
    Config: {
 | 
			
		||||
      Reset: "重置默认",
 | 
			
		||||
      SaveAs: "另存为面具",
 | 
			
		||||
      Reset: "清除记忆",
 | 
			
		||||
      SaveAs: "存为面具",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  Export: {
 | 
			
		||||
@@ -47,8 +47,8 @@ const cn = {
 | 
			
		||||
    EmptyContent: "对话内容过短,无需总结",
 | 
			
		||||
    Send: "自动压缩聊天记录并作为上下文发送",
 | 
			
		||||
    Copy: "复制摘要",
 | 
			
		||||
    Reset: "重置对话",
 | 
			
		||||
    ResetConfirm: "重置后将清空当前对话记录以及历史摘要,确认重置?",
 | 
			
		||||
    Reset: "[unused]",
 | 
			
		||||
    ResetConfirm: "确认清空历史摘要?",
 | 
			
		||||
  },
 | 
			
		||||
  Home: {
 | 
			
		||||
    NewChat: "新的聊天",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user