From fbcf372b9b9e1f63288e4d9da07552f5b417a2ba Mon Sep 17 00:00:00 2001 From: yihong Date: Thu, 2 Mar 2023 16:11:21 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d84b5ade..da80c848 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Play ChatGPT with Xiaomi AI Speaker 8. 默认用目前 ubus, 如果你的设备不支持 ubus 可以使用 --use_command 来使用 command 来 tts 9. 使用 --mute_xiaoai 选项,可以让小爱不回答,但会频繁请求,玩一下可以使用,不建议一直用 10. 使用 --account ‘${account}’ --password ‘${password}’ 可以不进行步骤 2 -11. 如果有能力可以自行替换唤醒词,也可以去掉唤醒词,源码 ` if query.find("帮我回答") != -1:` +11. 如果有能力可以自行替换唤醒词,也可以去掉唤醒词,源码在 https://github.com/yihong0618/xiaogpt/blob/main/xiaogpt.py#L32 12. 可以使用 gpt-3 的 api 那样可以更流畅的对话,速度快, 请 google 如何用 openai api, 命令 --use_gpt3 13. 可以使用 --use_chatgpt_api 的 api 那样可以更流畅的对话,速度特别快,达到了对话的体验, 请 google 如何用 openai api, 命令 --use_chatgpt_api @@ -43,7 +43,7 @@ export OPENAI_API_KEY=${your_api_key} python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_gpt3 # 如果你想用 chatgpt api export OPENAI_API_KEY=${your_api_key} -python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_chatgpt_api +python3 xiaogpt.py --hardware LX06 --use_chatgpt_api ``` ## 注意