mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 18:57:07 +08:00
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"
|
||||
|
Reference in New Issue
Block a user