优化配置
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user