gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Poe update, availableBots change to viewerBotList

Open johnson7788 opened this issue 1 year ago • 1 comments

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.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

johnson7788 avatar May 31 '23 06:05 johnson7788

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.

AIchenkai avatar May 31 '23 10:05 AIchenkai