MZhaovo commited on
Commit
d6526d1
·
1 Parent(s): 8b610a5

自动命名更改为16个字符

Browse files
Files changed (1) hide show
  1. modules/models/base_model.py +1 -1
modules/models/base_model.py CHANGED
@@ -681,7 +681,7 @@ class BaseLLMModel:
681
 
682
  def auto_name_chat_history(self, user_question, chatbot, user_name):
683
  if chatbot == []:
684
- filename = user_question[:12] + ".json"
685
  return self.rename_chat_history(filename, chatbot, user_name)
686
  else:
687
  return gr.update()
 
681
 
682
  def auto_name_chat_history(self, user_question, chatbot, user_name):
683
  if chatbot == []:
684
+ filename = user_question[:16] + ".json"
685
  return self.rename_chat_history(filename, chatbot, user_name)
686
  else:
687
  return gr.update()