Skip to content

Commit 040915c

Browse files
committed
fix:回退上一个版本
1 parent d263f0c commit 040915c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

astrbot/core/agent/runners/tool_loop_agent_runner.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,7 @@ async def _iter_llm_responses_with_fallback(
242242
try:
243243
async for resp in self._iter_llm_responses(include_model=idx == 0):
244244
if resp.is_chunk:
245-
if (
246-
resp.completion_text
247-
or resp.reasoning_content
248-
or resp.tools_call_ids
249-
or (resp.result_chain and resp.result_chain.chain)
250-
):
251-
has_stream_output = True
245+
has_stream_output = True
252246
yield resp
253247
continue
254248

@@ -263,7 +257,7 @@ async def _iter_llm_responses_with_fallback(
263257
candidate_id,
264258
)
265259
break
266-
260+
267261
yield resp
268262
return
269263

0 commit comments

Comments
 (0)