fix: 修复部分机型连续对话异常的问题(比如小爱音箱 Play)

This commit is contained in:
WJG 2024-06-22 20:19:24 +08:00
parent 77d31a024a
commit beafec6d11
No known key found for this signature in database
GPG Key ID: 258474EF8590014A
2 changed files with 31 additions and 1 deletions

View File

@ -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 ## v4.0.0
### ✨ 新功能 ### ✨ 新功能

View File

@ -368,7 +368,7 @@ export class BaseSpeaker {
if (isOk === "break") { if (isOk === "break") {
break; // 获取设备状态异常 break; // 获取设备状态异常
} }
if (res && playing.status !== "playing") { if (res != null && playing.status !== "playing") {
break; break;
} }
await sleep(this.checkInterval); await sleep(this.checkInterval);