idootop / mi-gpt

🏠 将小爱音箱接入 ChatGPT 和豆包,改造成你的专属语音助手。
MIT License
7.86k stars 817 forks source link

SyntaxError: Invalid or unexpected token #180

Closed Pgles-bot closed 2 months ago

Pgles-bot commented 2 months ago
之前能用,修改.env,打算换个大模型后,用不了了,换回原来的ENV文件也不行了,重装后直接运行不了docker了,日志如下: 2024/08/30 00:47:44 stderr Node.js v20.14.0
2024/08/30 00:47:44 stderr  
2024/08/30 00:47:44 stderr at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
2024/08/30 00:47:44 stderr at callTranslator (node:internal/modules/esm/loader:272:14)
2024/08/30 00:47:44 stderr at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:169:18)
2024/08/30 00:47:44 stderr SyntaxError: Invalid or unexpected token
2024/08/30 00:47:44 stderr  
2024/08/30 00:47:44 stderr  
2024/08/30 00:47:44 stderr wakeUpKeywords: ["进入", "召唤","鲁班大师"],
2024/08/30 00:47:44 stderr file:///app/.migpt.js:117
2024/08/30 00:47:44 stdout  
2024/08/30 00:47:44 stdout > node ./app.js
2024/08/30 00:47:44 stdout > mi-gpt@4.2.0 start
2024/08/30 00:47:44 stdout  
2024/08/30 00:47:21 stderr Node.js v20.14.0
2024/08/30 00:47:21 stderr  
2024/08/30 00:47:21 stderr at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
2024/08/30 00:47:21 stderr at callTranslator (node:internal/modules/esm/loader:272:14)
2024/08/30 00:47:21 stderr at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:169:18)
2024/08/30 00:47:21 stderr SyntaxError: Invalid or unexpected token
2024/08/30 00:47:21 stderr  
2024/08/30 00:47:21 stderr  
2024/08/30 00:47:21 stderr wakeUpKeywords: ["进入", "召唤","鲁班大师"],
2024/08/30 00:47:21 stderr file:///app/.migpt.js:117
2024/08/30 00:47:21 stdout  
2024/08/30 00:47:21 stdout > node ./app.js
2024/08/30 00:47:21 stdout > mi-gpt@4.2.0 start
idootop commented 2 months ago

报错日志已经说是字符异常了,“召唤”后面的逗号要用英文字符

wakeUpKeywords: ["进入", "召唤","鲁班大师"], ⬇️ wakeUpKeywords: ["进入", "召唤", "鲁班大师"],