gpt4free
gpt4free copied to clipboard
Poe update, availableBots change to viewerBotList
Known Issues // delete this
- you.com issue / fix: use proxy, or vpn, your country is probably flagged
- forefront account creation error / use your own session or wait for fix
poe get_bots error,update script gpt4free/gpt4free/quora/api.py
def get_bots(self, download_next_data=True):
logger.info("Downloading all bots...")
if download_next_data:
next_data = self.get_next_data(overwrite_vars=True)
else:
next_data = self.next_data
if not "availableBots" in self.viewer:
raise RuntimeError("Invalid token or no bots are available.")
**bot_list = self.viewer["availableBots"]**
# change to viewerBotList
bot_list = self.viewer["viewerBotList"]
Bug description What did you do, what happened, which file did you try to run, in which directory Describe what you did after downloading repo, such as moving to this repo, running this file.
ex.
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Screenshots If applicable, add screenshots to help explain your problem.
Environement
- python version
- location ( are you in a cloudfare flagged country ) ?
Additional context Add any other context about the problem here.
When running https://colab.research.google.com/github/DanielShemesh/gpt4free-colab/blob/main/gpt4free.ipynb in colab, Did you meet this error :
File "/content/gpt4free/gpt4free/quora/api.py", line 179, in get_bot_thread chat_data = self.get_bot(bot["displayName"]) KeyError: 'displayName'
I have done the change you listed, but it still raise this error.