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);