去除广告内容

This commit is contained in:
liuwei
2025-05-27 16:42:15 +08:00
parent 9d2c5976d9
commit 1297a6b585

View File

@@ -204,7 +204,9 @@ class DifyPlugin(MessagePluginInterface):
# 调用Dify API获取回复
response = self._chat_with_dify(session_id, user_id, query)
# 去除广告内容
self.LOG.debug(f"_chat_with_dify response:{response}")
response = remove_trailing_content(response)
self.LOG.debug(f"remove_trailing_content response:{response}")
# 发送回复
if response:
# 判断是否为本地文件路径