Giter Club home page Giter Club logo

Comments (4)

scaryama avatar scaryama commented on July 30, 2024 1

My solve is modify 'pyChatGPT.py' file
"//div[starts-with(@Class, 'markdown prose break-words')]"

"//div[starts-with(@Class, 'markdown prose w-full break-words')]"

from pychatgpt.

872226263 avatar 872226263 commented on July 30, 2024

same problem, i post my soultion in #46

from pychatgpt.

terry3041 avatar terry3041 commented on July 30, 2024

Should be fixed in v0.3.9.5.

from pychatgpt.

p-i- avatar p-i- commented on July 30, 2024

(macOS)
Seems there's still an issue in 3.9.5.

resp = api.send_message('Hello, ChatGPT')

... gives:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
Cell In[4], line 1
----> 1 resp = api.send_message('Hello, ChatGPT')

File ~/code/2023/ML/hacking-chatGPT/.venv/lib/python3.11/site-packages/pyChatGPT/pyChatGPT.py:562, in ChatGPT.send_message(self, message)
    560 # Get the response element
    561 self.__verbose_print('[send_msg] Finding response element')
--> 562 response = self.driver.find_elements(By.XPATH, '//div[@class="flex-1 overflow-hidden"]//div[p]')[-1]
    564 # Check if the response is an error
    565 self.__verbose_print('[send_msg] Checking if response is an error')

IndexError: list index out of range

from pychatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.