mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
更新 __init__.py
This commit is contained in:
@@ -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:
|
def _should_stream(self) -> bool:
|
||||||
"""
|
"""
|
||||||
@@ -151,8 +151,6 @@ class MoviePilotAgent:
|
|||||||
"""
|
"""
|
||||||
if self.is_background:
|
if self.is_background:
|
||||||
return False
|
return False
|
||||||
if not self.channel:
|
|
||||||
return False
|
|
||||||
# 啰嗦模式下始终需要流式输出来捕获工具调用前的 Agent 文字
|
# 啰嗦模式下始终需要流式输出来捕获工具调用前的 Agent 文字
|
||||||
if settings.AI_AGENT_VERBOSE:
|
if settings.AI_AGENT_VERBOSE:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user