fix: block leaked history content before outbound send
This commit is contained in:
@@ -366,6 +366,8 @@ class SystemOrchestrator:
|
||||
|
||||
async def handle_outbound_event(self, user_id: str, platform: str, response: StandardResponse):
|
||||
if platform == "qianniu":
|
||||
if response and response.msg_type == 0:
|
||||
response.reply_content = self._sanitize_outbound_text(response.reply_content)
|
||||
await self.qianniu_adapter.translate_outbound(response, user_id)
|
||||
|
||||
# 全局单例
|
||||
|
||||
Reference in New Issue
Block a user