Thanks for developing this cool package. When I try the suggested code
resp = api.send_message('Hello, world!')
I see the package successfully open chrome, log in, submit the message, and get a response. However, the code errors out in the following way:
IndexError Traceback (most recent call last)
Input In [34], in <module>
----> 1 resp = api.send_message('Hello, world!')
File ~/.pyenv/versions/3.10.1/lib/python3.10/site-packages/pyChatGPT/pyChatGPT.py:393, in ChatGPT.send_message(self, message)
391 # Get the response element
392 self.__verbose_print('[send_msg] Finding response element')
--> 393 response = self.driver.find_elements(
394 By.XPATH, "//div[starts-with(@class, 'request-:')]"
395 )[-1]
397 # Check if the response is an error
398 self.__verbose_print('[send_msg] Checking if response is an error')
IndexError: list index out of range
Hi,
Thanks for developing this cool package. When I try the suggested code resp = api.send_message('Hello, world!')
I see the package successfully open chrome, log in, submit the message, and get a response. However, the code errors out in the following way:
Sorry if this is just an issue on my end.