重构语音能力配置与逻辑,统一音频输入输出开关并优化语音回复判断

This commit is contained in:
jxxghp
2026-04-29 18:15:34 +08:00
parent e4a7333b79
commit b7749c44fd
9 changed files with 159 additions and 76 deletions
+4 -1
View File
@@ -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,