优化依赖管理配置,移除不必要的allowed_auto_install选项,更新文档以更清晰地描述自动安装功能的主开关。调整相关代码以简化逻辑,确保自动安装行为通过单一配置控制。

This commit is contained in:
minecraft1024a
2025-08-13 12:35:41 +08:00
parent 97351ce1ae
commit d78bf618f9
5 changed files with 7 additions and 24 deletions

View File

@@ -255,7 +255,7 @@ suppress_libraries = ["faiss","httpx", "urllib3", "asyncio", "websockets", "http
library_log_levels = { "aiohttp" = "WARNING"} # 设置特定库的日志级别
[dependency_management] # 插件Python依赖管理配置
# 是否启用自动安装Python依赖包
# 是否启用自动安装Python依赖包(主开关)
auto_install = true
# 安装超时时间(秒)
@@ -271,9 +271,6 @@ pip_options = [
"--disable-pip-version-check"
]
# 是否允许自动安装(主开关),关闭后所有插件都不会自动安装依赖
allowed_auto_install = true
# 安装前是否提示用户(暂未实现)
prompt_before_install = false