mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 19:47:41 +08:00
重构语音能力配置与逻辑,统一音频输入输出开关并优化语音回复判断
This commit is contained in:
@@ -202,7 +202,10 @@ class MessageChain(ChainBase):
|
||||
)
|
||||
return
|
||||
|
||||
if settings.AI_AGENT_ENABLE and (settings.AI_AGENT_GLOBAL or images or files):
|
||||
if (
|
||||
settings.AI_AGENT_ENABLE
|
||||
and (settings.AI_AGENT_GLOBAL or images or files or reply_with_voice)
|
||||
):
|
||||
self._handle_ai_message(
|
||||
text=text,
|
||||
channel=channel,
|
||||
|
||||
Reference in New Issue
Block a user