Use and logic.

This commit is contained in:
jinghuan-Chen
2025-11-13 10:50:05 +08:00
committed by ulleo
parent 3f0b1f8a43
commit 6b5bdc1563
+1 -1
View File
@@ -926,7 +926,7 @@ class LLMService:
# return title
if self.change_title:
if self.chat_question.question or self.chat_question.question.strip() != '':
if self.chat_question.question and self.chat_question.question.strip() != '':
brief = rename_chat(session=_session,
rename_object=RenameChat(id=self.get_record().chat_id,
brief=self.chat_question.question.strip()[:20]))