Spaces:
Sleeping
Sleeping
自动命名更改为16个字符
Browse files
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[:
|
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()
|