Przeglądaj źródła

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

tags/0.3.19
takatost 2 lat temu
rodzic
commit
02452421d5
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      api/core/conversation_message_task.py

+ 2
- 1
api/core/conversation_message_task.py Wyświetl plik

db.session.flush() db.session.flush()


def append_message_text(self, text: str): def append_message_text(self, text: str):
self._pub_handler.pub_text(text)
if text is not None:
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):
message_tokens = llm_message.prompt_tokens message_tokens = llm_message.prompt_tokens

Ładowanie…
Anuluj
Zapisz