From dc5215cd438a6a4aff2fe53a2e4ec359871ae50d Mon Sep 17 00:00:00 2001 From: WJG Date: Tue, 11 Jun 2024 09:06:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E5=B0=8F=E7=88=B1=E8=AE=BE=E5=A4=87=E7=9A=84=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq.md | 17 ++++++++++++++++- docs/todo.md | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 7d1e615..0c9f953 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -18,12 +18,27 @@ ### Q:提示“ERR_MODULE_NOT_FOUND”,无法正常启动 -在 Windows 终端(比如:PowerShell、cmd)下,无法使用 `$(pwd)` 获取当前工作目录绝对路径,需要填写 `.env` 和 `.migpt.js` 文件的绝对路径,相关 [issue](https://github.com/idootop/mi-gpt/issues/45)。示例: +配置文件 `.migpt.js` 不存在或有错误。检查 docker 下是否存在 `/app/.migpt.js` 文件以及内容是否正确,相关 [issue](https://github.com/idootop/mi-gpt/issues/45)。 + +注意:在 Windows 终端(比如:PowerShell、cmd)下启动 docker 时,无法使用 `$(pwd)` 获取当前工作目录绝对路径,需要填写 `.env` 和 `.migpt.js` 文件的绝对路径。示例: ```shell docker run --env-file D:/hello/mi-gpt/.env -v D:/hello/mi-gpt/.migpt.js:/app/.migpt.js idootop/mi-gpt:latest ``` +### Q:提示“找不到设备:xxx”,初始化 Mi Services 失败 + +填写的设备 did 不存在,请检查设备名称是否和米家中的一致。相关 [issue](https://github.com/idootop/mi-gpt/issues/30)。 + +常见错误设备名称的示例: + +```js +// 错别字:响 -> 箱 +❌ 小爱音响 -> ✅ 小爱音箱 +// 多余的空格 +❌ 小爱音箱 Pro -> ✅ 小爱音箱Pro +``` + ## 🔊 播放异常类问题 ### Q:小爱音箱收到消息后,没有调用 AI 进行回复 diff --git a/docs/todo.md b/docs/todo.md index 9599534..513e0c6 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -20,7 +20,7 @@ - ✅ 优化关于小米账号安全验证相关的提示语和使用说明。https://github.com/idootop/mi-gpt/issues/22#issuecomment-2150535622 - ✅ 优化关于 Azure OpenAI 配置的说明。https://github.com/idootop/mi-gpt/issues/7 - ✅ 优化调用 AI 进行回复的相关说明和示例。 -- 优化找不到小爱设备的提示文案以及 FAQ 教程。https://github.com/idootop/mi-gpt/issues/28#issuecomment-2153645819 +- ✅ 优化找不到小爱设备的相关说明。https://github.com/idootop/mi-gpt/issues/28#issuecomment-2153645819 - 添加关于唤醒小爱、唤醒词、唤醒模式的说明和注意事项。 - ✅ 添加关于 clone 项目本地运行的相关配置教程。 - ✅ 添加关于本地构建本项目 docker 镜像的说明。