From 7f539090ddc60133498f909968dcd4ea965168e9 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 25 Jan 2025 20:04:16 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=97=B6=E8=BF=9E=E5=B8=A6=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/config/default.py | 2 +- astrbot/dashboard/routes/update.py | 7 +++++++ changelogs/v3.4.12.md | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 changelogs/v3.4.12.md diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 8cb965988..91a5b1a5d 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -2,7 +2,7 @@ 如需修改配置,请在 `data/cmd_config.json` 中修改或者在管理面板中可视化修改。 """ -VERSION = "3.4.11" +VERSION = "3.4.12" DB_PATH = "data/data_v3.db" # 默认配置 diff --git a/astrbot/dashboard/routes/update.py b/astrbot/dashboard/routes/update.py index d809a440b..17dd947b2 100644 --- a/astrbot/dashboard/routes/update.py +++ b/astrbot/dashboard/routes/update.py @@ -63,6 +63,13 @@ class UpdateRoute(Route): await download_dashboard() except Exception as e: logger.error(f"下载管理面板文件失败: {e}。") + + # pip 更新依赖 + logger.info("更新依赖中...") + try: + pip_installer.install(requirements_path="requirements.txt") + except Exception as e: + logger.error(f"更新依赖失败: {e}") if reboot: # threading.Thread(target=self.astrbot_updator._reboot, args=(2, )).start() diff --git a/changelogs/v3.4.12.md b/changelogs/v3.4.12.md new file mode 100644 index 000000000..5d46c0d1e --- /dev/null +++ b/changelogs/v3.4.12.md @@ -0,0 +1,6 @@ +# What's Changed + +- Gewechat 微信支持图片、语音的收和发 +- 支持 OpenAI TTS(文字转语音) +- 支持路径映射,解决 docker 部署时两端文件系统不一致导致的富媒体文件路径不存在问题 +- Napcat 下语音消息可能接收异常 \ No newline at end of file