fix: pub generate message text return null (#1037)
This commit is contained in:
parent
3a5c7c75ad
commit
02452421d5
1 changed files with 2 additions and 1 deletions
|
|
@ -137,6 +137,7 @@ class ConversationMessageTask:
|
||||||
db.session.flush()
|
db.session.flush()
|
||||||
|
|
||||||
def append_message_text(self, text: str):
|
def append_message_text(self, text: str):
|
||||||
|
if text is not None:
|
||||||
self._pub_handler.pub_text(text)
|
self._pub_handler.pub_text(text)
|
||||||
|
|
||||||
def save_message(self, llm_message: LLMMessage, by_stopped: bool = False):
|
def save_message(self, llm_message: LLMMessage, by_stopped: bool = False):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue