新增插件Python依赖管理系统,支持自动检查和安装依赖,优化依赖配置和错误处理,更新相关文档和示例代码。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[inner]
|
||||
version = "6.2.7"
|
||||
version = "6.2.8"
|
||||
|
||||
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
||||
#如果你想要修改配置文件,请递增version的值
|
||||
@@ -254,6 +254,32 @@ file_log_level = "DEBUG" # 文件日志级别,可选: DEBUG, INFO, WARNING, ER
|
||||
suppress_libraries = ["faiss","httpx", "urllib3", "asyncio", "websockets", "httpcore", "requests", "peewee", "openai","uvicorn","jieba","maim_message"] # 完全屏蔽的库
|
||||
library_log_levels = { "aiohttp" = "WARNING"} # 设置特定库的日志级别
|
||||
|
||||
[dependency_management] # 插件Python依赖管理配置
|
||||
# 是否启用自动安装Python依赖包
|
||||
auto_install = true
|
||||
|
||||
# 安装超时时间(秒)
|
||||
auto_install_timeout = 300
|
||||
|
||||
# 是否使用代理进行包安装
|
||||
use_proxy = false
|
||||
proxy_url = "" # 代理URL,如: "http://proxy.example.com:8080" 或 "socks5://proxy.example.com:1080"
|
||||
|
||||
# pip安装选项
|
||||
pip_options = [
|
||||
"--no-warn-script-location",
|
||||
"--disable-pip-version-check"
|
||||
]
|
||||
|
||||
# 是否允许自动安装(主开关),关闭后所有插件都不会自动安装依赖
|
||||
allowed_auto_install = true
|
||||
|
||||
# 安装前是否提示用户(暂未实现)
|
||||
prompt_before_install = false
|
||||
|
||||
# 依赖安装日志级别
|
||||
install_log_level = "INFO"
|
||||
|
||||
[debug]
|
||||
show_prompt = false # 是否显示prompt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user