dify 插件化

This commit is contained in:
liuwei
2025-03-19 17:37:02 +08:00
parent 1fa18848c0
commit 31516c3090
4 changed files with 119 additions and 63 deletions

23
plugins/dify/config.toml Normal file
View File

@@ -0,0 +1,23 @@
[Dify]
enable = true
api-key = "app-u5EnYq3ill19bm6pWJwGkY4D" # Dify的API Key
base-url = "http://192.168.2.240/v1" #Dify API接口base url
commands = ["ai", "dify", "聊天", "AI"]
command-tip = """
-----Bot-----
💬AI聊天指令
聊天 请求内容
"""
price = 0 # 用一次扣积分如果0则不扣
# Http代理设置
# 格式: http://用户名:密码@代理地址:代理端口
# 例如http://127.0.0.1:7890
http-proxy = ""
# 管理员和白名单用户是否免费使用
admin_ignore = true
whitelist_ignore = true