mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Use and logic.
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user