theAbdoSabbagh / UnlimitedGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
https://pypi.org/project/UnlimitedGPT/
GNU General Public License v3.0
346 stars 43 forks source link

ChatGPT loads but messege is not send #29

Closed heronBot closed 1 year ago

heronBot commented 1 year ago

i don't have time for writing the full issue but i think it needs to be maintained sorry byeee

theAbdoSabbagh commented 1 year ago

bro at least show the code? 💀

heronBot commented 1 year ago

sorry!! i thought it would take days for you to reply but i will give my best now. image so, this is all I have. It works perfectly for the first part. It logs itself in using my credentials but, the message is not sent.

theAbdoSabbagh commented 1 year ago

Have you updated the library? I released a brand new version today, it's 0.1.8.5

heronBot commented 1 year ago

Yes, I did it just now! still the same result. I have been using this for a week now and for first two days, it had worked after a couple of tries.

theAbdoSabbagh commented 1 year ago

Yes, I did it just now! still the same result. I have been using this for a week now and for first two days, it had worked after a couple of tries.

after a couple of tries? could you uninstall the library, then reinstall it, then restart your machine and run your code? id appreciate it, maybe this way itll work from the first try

theAbdoSabbagh commented 1 year ago

although I just noticed ChatGPT got a new update to the website, a feature called instructions, perhaps they updated selectors, ill look into it

heronBot commented 1 year ago

Ok I did everything you told me to. Maybe I wasn't that clear, on first day, it worked and did it's work fine after a couple of tries. During those failed times, it would open the window and log in but just halt from there. Since that day, the result is same!!

heronBot commented 1 year ago

I restarted my machine, re-installed the package and it is same. Maybe it is just in my machine? or maybe I am doing something wrong?

theAbdoSabbagh commented 1 year ago

I'll look into it now

heronBot commented 1 year ago

Thankss, by the way, I really love your work!!

theAbdoSabbagh commented 1 year ago

Thankss, by the way, I really love your work!!

thank you!

theAbdoSabbagh commented 1 year ago

Please update to the new version 0.1.9, it has a fix to this bug now. Check the changelog for more information, and let me know if you face any other bugs

theAbdoSabbagh commented 1 year ago

Actually 0.1.9.1 since I just removed a print function I forgot to remove earlier

pendekarcode commented 1 year ago

Actually 0.1.9.1 since I just removed a print function I forgot to remove earlier

new bug... message = api.send_message(prompt1) File "xyz\UnlimitedGPT.py", line 577, in send_message
self._get_conversation_id() File "xyz\UnlimitedGPT.py", line 310, in _get_conversation_id self._conversation_id = loads(ret["body"])["items"][0]["id"] IndexError: list index out of range

theAbdoSabbagh commented 1 year ago

are you sure youre using the latest version? I can send messages and I don't get that issue at all

pendekarcode commented 1 year ago

are you sure youre using the latest version? I can send messages and I don't get that issue at all

yes. sure... please check Screenshot 2023-08-10 18 45 35

theAbdoSabbagh commented 1 year ago

Thats so strange, no matter what I do it doesnt do that for me. Perhaps it's selenium version, could you uninstall both selenium and undetected-chromedriver then uninstall UnlimitedGPT and install it again? cause it uses something that isnt in the new version of selenium

theAbdoSabbagh commented 1 year ago

just install UnlimitedGPT alone once u uninstall all 3 libraries and it will install the correct versions of the libraries

pendekarcode commented 1 year ago

ucgpt i have tried it. please check the recording in the following ogif form

theAbdoSabbagh commented 1 year ago

Update to the new version, just released it, should fix this bug lol

pendekarcode commented 1 year ago

Update to the new version, just released it, should fix this bug lol

Yes,perfect. But, only work with input_mode="SLOW". No, problem.... i like it. thanks for your support brother.

theAbdoSabbagh commented 1 year ago

Update to the new version, just released it, should fix this bug lol

Yes,perfect. But, only work with input_mode="SLOW". No, problem.... i like it. thanks for your support brother.

INSTANT doesnt work? could u show me the code when u use that mode?

pendekarcode commented 1 year ago

Screenshot 2023-08-10 19 18 17 if using message = api.send_message(prompt1, input_mode="INSTANT") or without input_mode. Loading icon very long time. but, when using SLOW mode. it's worked.

pendekarcode commented 1 year ago

prompt1 = 'Hi, how are you?' message = api.send_message(prompt1, input_mode="INSTANT") # INSTANT SLOW print(message.response, message.conversation_id) time.sleep(50)

I've added time sleep 50 seconds, still does not show a response

theAbdoSabbagh commented 1 year ago

pendekarcode

ah thats an issue from your machine/browser, since its just taking time for the website textbox to load and not for the code to work

pendekarcode commented 1 year ago

but, I've added time sleep 50 seconds. still not show response

heronBot commented 1 year ago

THANKSS!! It is working for me too. It works perfectly!!

theAbdoSabbagh commented 1 year ago

Closing the issue as the bugs have been fixed