jack hace 6 días
padre
commit
e5fc4efb55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/core/runner/thread_runner.py

+ 1 - 1
app/core/runner/thread_runner.py

@@ -452,7 +452,7 @@ class ThreadRunner:
                 for content in message.content:
                     if content["type"] == "text":
                         assistant_content += content["text"]["value"]
-                if assistant_content is not None or assistant_content != "":
+                if assistant_content is not None and assistant_content != "":
                     chat_messages.append(msg_util.new_message(role, assistant_content, message.reasoning_content))
                 #chat_messages.append(msg_util.new_message(role, assistant_content, message.reasoning_content))