From 9e0995668a5b2ce2be3ff6ca3740e2f6637b0103 Mon Sep 17 00:00:00 2001 From: Tuchuanhuhuhu Date: Fri, 17 Nov 2023 12:27:31 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D/=E5=88=A0=E9=99=A4=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=81=97=E7=95=99=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?md=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98=20fix=20#950?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/models/base_model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/models/base_model.py b/modules/models/base_model.py index ebd9b067..ae71d2ce 100644 --- a/modules/models/base_model.py +++ b/modules/models/base_model.py @@ -811,8 +811,10 @@ def delete_chat_history(self, filename, user_name): history_file_path = os.path.join(HISTORY_DIR, user_name, filename) else: history_file_path = filename + md_history_file_path = history_file_path[:-5] + ".md" try: os.remove(history_file_path) + os.remove(md_history_file_path) return i18n("删除对话历史成功"), get_history_list(user_name), [] except: logging.info(f"删除对话历史失败 {history_file_path}")