Soulter / AstrBot

OneBot、微信、Telegram、QQ 等多平台兼容的支持 LLM 的聊天机器人平台,支持插件。
GNU Affero General Public License v3.0
566 stars 55 forks source link

总能读取我以前的key #121

Closed Pwn1996 closed 1 year ago

Pwn1996 commented 1 year ago

我几个月前用过openai的api登陆过,显示超额后又重新弄了一遍,配置文件里也没有输入原来的api,为何运行时总是能读取我原来的key呢

[07-04 09:26:44] [INFO] [System]: - OpenAI官方 - [07-04 09:26:44] [INFO] [System]: 读取ChatGPT Key成功

[07-04 09:26:44] [INFO] [System]: 加载ChatGPTConfigs: {'model': 'gpt-3.5-turbo', 'max_tokens': 3000, 'temperature': 0.9, 'top_p': 1, 'fr...

Soulter commented 1 year ago

之前有实现过单独的文件记录使用情况。删除chatgpt_key_record那个文件即可。(未来版本会删掉这个特性

Pwn1996 commented 1 year ago

还是不行,是我删错位置了吗 [root@iZj6c2u0q3lxxmnn8vwuakZ qqchangpt]# ls addons chatgpt_key_record CODE_OF_CONDUCT.md cores LICENSE model requirements.txt screenshots webapp_replit.py botpy.log cmd_config.json configs data.db main.py README.md resources util [root@iZj6c2u0q3lxxmnn8vwuakZ qqchangpt]# rm -f chatgpt_key_record [root@iZj6c2u0q3lxxmnn8vwuakZ qqchangpt]# ls addons botpy.log cmd_config.json CODE_OF_CONDUCT.md configs cores data.db LICENSE main.py model README.md requirements.txt resources screenshots util webapp_replit.py [root@iZj6c2u0q3lxxmnn8vwuakZ qqchangpt]# python3 main.py

Pwn1996 commented 1 year ago

Screenshot_2023-07-04-09-41-57-384-edit_cn.wps.moffice_eng.jpg

手机太乱了,截图看看行不行