Skip to content

Commit 6b5bdc1

Browse files
jinghuan-Chenulleo
authored andcommitted
Use and logic.
1 parent 3f0b1f8 commit 6b5bdc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/chat/task/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ def run_task(self, in_chat: bool = True, stream: bool = True,
926926

927927
# return title
928928
if self.change_title:
929-
if self.chat_question.question or self.chat_question.question.strip() != '':
929+
if self.chat_question.question and self.chat_question.question.strip() != '':
930930
brief = rename_chat(session=_session,
931931
rename_object=RenameChat(id=self.get_record().chat_id,
932932
brief=self.chat_question.question.strip()[:20]))

0 commit comments

Comments
 (0)