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