terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 255 forks source link

response['message'] could not get the returned data #147

Open neypro opened 1 year ago

neypro commented 1 year ago

Today, I use pyChatGPT and realized response['message'] could not get the returned data. Is the source code changed?

Aionstn commented 1 year ago

File "D:\aconda..\pyChatGPT\pyChatGPT.py", line 460, in send_message conversation_id = matches.group() AttributeError: 'NoneType' object has no attribute 'group'

It looks like something went wrong with the regex

neypro commented 1 year ago

Have you fixed this error yet? Thanks

mrryan2 commented 1 year ago

I also got the same error. Is anyone working on this? Do you want help ?

mrryan2 commented 1 year ago

Any news on a fix for this problem ?

Aionstn commented 1 year ago

It is possible that chatgtp deleted all the returned information after detecting selenium

mrryan2 commented 1 year ago

I dont think so, but whatever it is i hope it gets resolved pretty soon. I have a large project that this import is perfect for :(

mrryan2 commented 1 year ago

Still no solution for this ?

suspiciousRaccoon commented 1 year ago

getting the same error : /

mrryan2 commented 1 year ago

I havent fixed it but i have found a way around. If you remove your breakpoints (VSC) and dont use the response object inside the python script you can use 'Super Power ChatGPT' Chrome extension to download all the conversations. Depending on your project that may or may not be useful, but it works for me. I would still like to find a solution though so i will keep looking and if i find something i will post it here.

IntelligenzaArtificiale commented 1 year ago

the solution is here https://github.com/IntelligenzaArtificiale/Free-AUTO-GPT-with-NO-API/blob/main/FreeLLM/pyChatGPT.py for use look this https://github.com/IntelligenzaArtificiale/Free-AUTO-GPT-with-NO-API/blob/main/FreeLLM/ChatGPTAPI.py

thanks for this repository