Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.63k stars 701 forks source link

Bot not authenting through session tokens #395

Closed birdup000 closed 1 year ago

birdup000 commented 1 year ago

Hi I'm trying to authenticate using the session puid and the other token and it's throwing this error. image

Zero6992 commented 1 year ago

puid and session token are used for authentication in UNOFFICIAL models, but you switched to OFFICIAL model

birdup000 commented 1 year ago

image I had setting set to true in the .env

UNOFFICIAL_PAID=True

Zero6992 commented 1 year ago

What you need to switch to is the Website ChatGPT, and the image above shows you switching to the OFFICIAL Model

Zero6992 commented 1 year ago

UNOFFICIAL_PAID is a deprecated environment name, please re-clone the latest version

birdup000 commented 1 year ago

Hmm I tried setting unofficial and it gives startup error my .env looks like this. image

birdup000 commented 1 year ago

With it set to official it gives this on the discord. Screenshot_20230511_115026

birdup000 commented 1 year ago

Hmm I tried setting unofficial and it gives startup error my .env looks like this. image

python main.py Traceback (most recent call last): File "/home/ubuntu/chatGPT-discord-bot/main.py", line 1, in from src import bot File "/home/ubuntu/chatGPT-discord-bot/src/bot.py", line 6, in from src.aclient import client File "/home/ubuntu/chatGPT-discord-bot/src/aclient.py", line 176, in client = aclient() File "/home/ubuntu/chatGPT-discord-bot/src/aclient.py", line 41, in init self.chatbot = self.get_chatbot_model() File "/home/ubuntu/chatGPT-discord-bot/src/aclient.py", line 46, in get_chatbot_model return AsyncChatbot(config={"email": self.openAI_email, "password": self.openAI_password, "access_token": self.chatgpt_access_token, "model": self.openAI_gpt_engine, "paid": self.chatgpt_paid}) File "/home/ubuntu/.local/lib/python3.10/site-packages/revChatGPT/V1.py", line 797, in init super().init( File "/home/ubuntu/.local/lib/python3.10/site-packages/revChatGPT/V1.py", line 66, in wrapper out = func(*args, *kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/revChatGPT/V1.py", line 141, in init cached_access_token = self.__get_cached_access_token( File "/home/ubuntu/.local/lib/python3.10/site-packages/revChatGPT/V1.py", line 66, in wrapper out = func(args, *kwargs) File "/home/ubuntu/.local/lib/python3.10/site-packages/revChatGPT/V1.py", line 260, in __get_cached_access_token s_access_token[1] += "=" ((4 - len(s_access_token[1]) % 4) % 4) IndexError: list index out of range

birdup000 commented 1 year ago

I see now I need to set email and password.