Unverified Commit 02452421 authored by takatost's avatar takatost Committed by GitHub

fix: pub generate message text return null (#1037)

parent 3a5c7c75
...@@ -137,6 +137,7 @@ class ConversationMessageTask: ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment