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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3ae1c8ff28e161981f1ae7b576b8c0b06adba2bcaeeef087d9432e6f5000d2e |
|
MD5 | c55cf31c0ef86b40d836099cb8913553 |
|
BLAKE2b-256 | d632217c79e8d6fb6d850e1149e4d41388bf2a0e2dc5adea84d6cfea43aec98a |
Close
Hashes for nonebot_plugin_multi_chatgpt-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ddbf5793c74031c9d4a2a7fced823df0badb89d69ddaa2487ec740005fc632b |
|
MD5 | d8eb9901abdcec431b5089e28153ebe1 |
|
BLAKE2b-256 | b637ff76355a627b839e818e95a869cc11282c2b84b0c0764fe2c05c45e3e2d5 |