lss233 / chatgpt-mirai-qq-bot

🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
12.52k stars 1.52k forks source link

[BUG] 启动chatgpt时报错:toml.decoder.TomlDecodeError: Key name found without value. #1294

Open Tywh202 opened 5 months ago

Tywh202 commented 5 months ago

提交 issue 前,请先确认:

表现
刚启动控制台报错如下: Active code page: 65001 2024-01-16 22:54:51.042 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:chatgpt-web 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:openai-api 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:baidu 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:slack 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:bard 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:bing 2024-01-16 22:54:51.043 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:bing 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:bing 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:chatglm 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.044 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.045 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.045 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.045 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.045 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:poe-token 2024-01-16 22:54:51.045 | DEBUG | framework.accounts.manager:register_type:35 - [AccountManager] 注册账号类型:xinghuo-cookie Traceback (most recent call last): File "F:\QQbot\Windowsv.3.0.0-Alpha2\chatgpt\bot.py", line 14, in import constants File "F:\QQbot\Windowsv.3.0.0-Alpha2\chatgpt\constants.py", line 41, in config = Config.load_config() ^^^^^^^^^^^^^^^^^^^^ File "F:\QQbot\Windowsv.3.0.0-Alpha2\chatgpt\config.py", line 831, in load_config return Config.parse_obj(toml.loads(str(guessed_str))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\QQbot\Windowsv.3.0.0-Alpha2\python3.11\Lib\site-packages\toml\decoder.py", line 213, in loads raise TomlDecodeError("Key name found without value."" Reached end of line.", original, i) toml.decoder.TomlDecodeError: Key name found without value. Reached end of line. (line 7 column 3 char 118) 程序已停止运行。 Press any key to continue . . .

运行环境:
操作系统:Windows 11 22H2 部署方式:Windows快速启动包 项目版本:[[早期预览版] v3.0.0-alpha2

复现步骤
描述你是如何触发这个 BUG 的 1初始化并按照教程修改配置文件结束 2打开启动ChatGPT.cmd 3控制台报错

截图
Quicker_20240116_230340

whitebalck547 commented 5 months ago

这个账号怎么设置?好像跟2.5.3和.2版本不一样啊

mcxgjkh commented 4 months ago

我也是3.00,他好像有bug,尝试一下低版本的包

mcxgjkh commented 4 months ago

Snipaste_2024-02-22_14-31-12 我的建议是用2.5.3 gocqhttp的教程没了只能用mirai版的了

mcxgjkh commented 4 months ago

亲测可以,2.5.3登录成功 ![Uploading Snipaste_2024-02-22_14-38-51.png…]()