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

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

@@ -153,7 +153,7 @@ class ThreadRunner:
             model=run.model,
             tools=[tool.openai_function for tool in tools],
             tool_choice="auto" if len(run_steps) < self.max_step else "none",
-            stream=True,
+            stream=self.stream,
             stream_options=run.stream_options,
             extra_body=run.extra_body,
             temperature=run.temperature,