更新 __init__.py

This commit is contained in:
jxxghp
2026-04-09 22:51:37 +08:00
committed by GitHub
parent 9675d199f9
commit 18906e5ab2

View File

@@ -138,7 +138,7 @@ class MoviePilotAgent:
"""
是否为后台任务模式(无渠道信息,如定时唤醒)
"""
return not self.channel and not self.source
return not self.channel or not self.source
def _should_stream(self) -> bool:
"""
@@ -151,8 +151,6 @@ class MoviePilotAgent:
"""
if self.is_background:
return False
if not self.channel:
return False
# 啰嗦模式下始终需要流式输出来捕获工具调用前的 Agent 文字
if settings.AI_AGENT_VERBOSE:
return True