Tuchuanhuhuhu commited on
Commit
7eb9412
1 Parent(s): d386f8b

bugfix: 解决删除历史记录时出错的问题

Browse files
Files changed (1) hide show
  1. modules/models/base_model.py +2 -2
modules/models/base_model.py CHANGED
@@ -667,9 +667,9 @@ class BaseLLMModel:
667
 
668
  def delete_chat_history(self, filename, user_name):
669
  if filename == "CANCELED":
670
- return gr.update(), gr.update()
671
  if filename == "":
672
- return i18n("你没有选择任何对话历史"), gr.update()
673
  if not filename.endswith(".json"):
674
  filename += ".json"
675
  if "/" not in filename:
 
667
 
668
  def delete_chat_history(self, filename, user_name):
669
  if filename == "CANCELED":
670
+ return gr.update(), gr.update(), gr.update()
671
  if filename == "":
672
+ return i18n("你没有选择任何对话历史"), gr.update(), gr.update()
673
  if not filename.endswith(".json"):
674
  filename += ".json"
675
  if "/" not in filename: