From beafec6d1162b15d0fda3050f50c3756352d2199 Mon Sep 17 00:00:00 2001 From: WJG Date: Sat, 22 Jun 2024 20:19:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=9C=BA=E5=9E=8B=E8=BF=9E=E7=BB=AD=E5=AF=B9=E8=AF=9D=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88=E6=AF=94=E5=A6=82?= =?UTF-8?q?=E5=B0=8F=E7=88=B1=E9=9F=B3=E7=AE=B1=20Play=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog.md | 30 ++++++++++++++++++++++++++++++ src/services/speaker/base.ts | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 40b849f..ce3ce02 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,35 @@ # ✨ 更新日志 +## v4.1.0 + +### 🐛 修复 + +- ✅ 修复部分机型连续对话异常的问题(比如小爱音箱 Play) +- ✅ 修复第三方 TTS 发音人为 undefined 的问题 +- ✅ 修复默认网络超时时间过短的问题,上调为 5s + +### 💪 优化 + +- ✅ 允许通过设置 systemTemplate 为空字符串来关闭系统消息 +- ✅ 优化关闭流式响应时不能使用连续对话模式的提示语 +- ✅ 优化 bot 个人简介默认模板 + +### 📚 文档 + +- 添加如何提高 AI 回答反应速度的配置教程 +- 添加连续对话下和小爱音箱说话没有反应的说明 +- 添加 server 端异地登录失败,使用本地登录凭证的教程 +- 添加 TTS 和 OpenAI baseURL 示例和注意事项 +- 添加如何关闭系统 Prompt 的说明 +- 添加系统 Prompt 字符串变量的示例 +- 添加 timeout 参数配置文档 + +### ❤️ 感谢 + +- @lmk123 正在为 MiGPT 制作 [GUI](https://github.com/idootop/mi-gpt/issues/111) 和启动 [CLI](https://github.com/lmk123/migpt-cli),方便普通用户更简单的使用 MiGPT。 +- @mingtian886 提供了小爱音箱 Play 硬件,协助调试连续对话异常的问题 +- 以及其他在微信交流群内帮助群友积极解答问题的可爱的人们 ❤️ + ## v4.0.0 ### ✨ 新功能 diff --git a/src/services/speaker/base.ts b/src/services/speaker/base.ts index 85a5127..08ac031 100644 --- a/src/services/speaker/base.ts +++ b/src/services/speaker/base.ts @@ -368,7 +368,7 @@ export class BaseSpeaker { if (isOk === "break") { break; // 获取设备状态异常 } - if (res && playing.status !== "playing") { + if (res != null && playing.status !== "playing") { break; } await sleep(this.checkInterval);