Skip to main content

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.devsession_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_multi_chatgpt-2.0.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page