jack 3 月之前
父節點
當前提交
091d066299
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/core/runner/thread_runner.py

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

@@ -124,7 +124,7 @@ class ThreadRunner:
                 session=self.session, thread_id=run.thread_id
                 session=self.session, thread_id=run.thread_id
             )
             )
         )
         )
-        """
+
         tool_call_messages = []
         tool_call_messages = []
         for step in run_steps:
         for step in run_steps:
             if step.type == "tool_calls" and step.status == "completed":
             if step.type == "tool_calls" and step.status == "completed":
@@ -132,7 +132,6 @@ class ThreadRunner:
                     self.__convert_assistant_tool_calls_to_chat_messages(step)
                     self.__convert_assistant_tool_calls_to_chat_messages(step)
                 )
                 )
         tool_call_messages = tool_call_messages[:2]
         tool_call_messages = tool_call_messages[:2]
-        """
         # memory
         # memory
         messages = (
         messages = (
             assistant_system_message
             assistant_system_message