优化配置

This commit is contained in:
liuwei
2025-06-05 11:25:14 +08:00
parent 54307297ab
commit 4b99ba4c7c

View File

@@ -45,7 +45,7 @@ class AIAutoResponsePlugin(MessagePluginInterface):
self.max_messages = 20 # 每个群最多存储的消息数量 self.max_messages = 20 # 每个群最多存储的消息数量
# DIFY API配置 # DIFY API配置
self.dify_api_url = "http://192.168.2.240/v1/chat-messages" self.dify_api_url = ""
self.dify_api_key = "" # 需要在配置文件中设置 self.dify_api_key = "" # 需要在配置文件中设置
def initialize(self, context: Dict[str, Any]) -> bool: def initialize(self, context: Dict[str, Any]) -> bool:
@@ -62,7 +62,7 @@ class AIAutoResponsePlugin(MessagePluginInterface):
# 从配置中获取DIFY API密钥 # 从配置中获取DIFY API密钥
self.dify_api_key = self._config.get("dify_api_key", "") self.dify_api_key = self._config.get("dify_api_key", "")
self.dify_api_url = self._config.get("dify_api_url", "http://192.168.2.240/v1/chat-messages") self.dify_api_url = self._config.get("dify_api_url", "")
# 初始化介入机器人 # 初始化介入机器人
self.intervention_bot = InterventionBot(config_path) self.intervention_bot = InterventionBot(config_path)