No project description provided
Project description
多账户ChatGPT
安装
第一种方式(暂时不行,等待pr通过)
nb plugin install nonebot_plugin_multi_chatgpt
第二种方式,使用一下命令安装
pip3 install nonebot_plugin_multi_chatgpt --upgrade
随后在bot.py
中加上如下代码,加载插件
nonebot.load_plugin('nonebot_plugin_multi_chatgpt')
配置
token方式
在.env.dev
中配置自己的chatgpt_session_token_list
即可
多个token,请注意不能换行只能写成一排 例如
chatgpt_session_token_list = ["xxx", "yyy", "zzz"]
如果只有一个session也需要用数组的形式
chatgpt_session_token_list = ["xxxx"]
获取token得方法,打开Application选项卡 > Cookie,复制值__Secure-next-auth.session-token
并将其粘贴到在.env.dev
中session_token
即可。不需要管Authorization的值。
密码方式
密码登陆需要通过代理来配置,一般配置格式如下。
chatgpt_email_list = ["osyyjozylg@iubridge.com", "lgfo353p@linshiyouxiang.net"]
chatgpt_passwd_list = ["yy123123", "yy123123"]
chatgpt_proxy = "http://127.0.0.1:6152"
其他
指令前缀,默认值为chat
chatgpt_command_prefix = "。"
Todo
- 返回值渲染为图片
- 完善密码登陆
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_multi_chatgpt-2.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd509abf8f14a0daad9043ead40da4c74bb2e7241989774e0b53bcd345358a0 |
|
MD5 | 4b77ef80e9b09162810a8fda241195cf |
|
BLAKE2b-256 | f2ccce41b22d8c8a27acc9837781f9b70f8831497cc5995f017945d90b8220aa |
Close
Hashes for nonebot_plugin_multi_chatgpt-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74d208b2b535c369f565bba45985b3d096ead68caeafdb07b6b909fae70e59c |
|
MD5 | 18c7097e7c6bb043bba97179803cce90 |
|
BLAKE2b-256 | a1ccc875ae0da685851e99c56fb8c15c28961d3d29782aeff42c11f878158fb6 |