Baota Panel AI Patch Script
# Linux Only
curl -fsSL https://raw.githubusercontent.com/CuzTeam/BTPlus/refs/heads/main/scripts/run.sh | bash -s -- apply
# 指定 API 参数(跳过交互)
curl -fsSL https://raw.githubusercontent.com/CuzTeam/BTPlus/refs/heads/main/scripts/run.sh | bash -s -- apply --url https://api.openai.com/v1 --key sk-xxx
# 查看状态
bash scripts/run.sh status
# 恢复官方配置
bash scripts/run.sh revert- 自动解密加密的
comMod.py(AES-128-CBC) - Patch
chat()硬编码的api_key(新版从DEFAULT_CONFIG改为config) - Patch
simple_chat()的api_key/base_url回退值 - 强制
default_headers(原始 BTPlus 逻辑) - 清理 prompt 模板中硬编码的
base_url/api_key - 幂等 patch + AST 语法校验