fix(group-chat): 移除雙AI互相評論 — 單獨@只有該AI回覆,雙AI路徑不再互評
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-03 19:44:49 +08:00
parent 79a770ffe5
commit 8d09b18477

View File

@@ -3182,27 +3182,6 @@ class TelegramGateway:
reply_to_message_id=message_id,
)
# 互相評論OpenClaw 看 Nemo 的回應Nemo 看 OpenClaw 的回應
if oc_result and nemo_result and not isinstance(oc_result, Exception) and not isinstance(nemo_result, Exception):
oc_comment_task = asyncio.create_task(
chat_mgr._call_openclaw(
f"{context}\nNemoClaw 說:{nemo_result[:300]}\n你有什麼補充或不同看法?簡短回應。",
clean_text,
)
)
nemo_comment_task = asyncio.create_task(
chat_mgr._call_nemotron(
f"{context}\nOpenClaw 說:{oc_result[:300]}\n你有什麼補充或不同看法?簡短回應。",
clean_text,
)
)
oc_comment, nemo_comment = await asyncio.gather(oc_comment_task, nemo_comment_task, return_exceptions=True)
if oc_comment and not isinstance(oc_comment, Exception):
await self.send_as_openclaw(text=f"🦞 <b>OpenClaw 補充</b>\n\n{oc_comment}", reply_to_message_id=message_id)
if nemo_comment and not isinstance(nemo_comment, Exception):
await self.send_as_nemotron(text=f"🤖 <b>NemoClaw 補充</b>\n\n{nemo_comment}", reply_to_message_id=message_id)
logger.info("group_message_handled", user_id=user_id, text=text[:50])
async def _send_chat_action(self, chat_id: int, action: str) -> None: