Skip to content

Commit e8a8d09

Browse files
committed
fix:增加空回复判断条件
1 parent b0d07a9 commit e8a8d09

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

astrbot/core/agent/runners/tool_loop_agent_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ async def _iter_llm_responses_with_fallback(
245245
# 此处不应判断整个消息链是否为空 因为消息链包含整个对话流 而空回复可能发生在任何阶段
246246
if (
247247
not resp.completion_text
248+
and not resp.reasoning_content
248249
and not resp.tools_call_args
249250
and not is_last_candidate
250251
):

0 commit comments

Comments
 (0)