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

Error calling OpenClipboard ([WinError 5] Access is denied.) #37

Open mpetruc opened 1 year ago

mpetruc commented 1 year ago

Not sure if this is a bug or not, will be happy to submit a proper report if needed. In any case, i'm getting this error when calling unlimittedGPT in a loop, after a random number of iterations (sometimes even after the first). It continues to generate this error for several iterations (sometimes all of them). At one point it timed out with this message:

Message: disconnected: Unable to receive message from renderer (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: chrome=115.0.5790.110) Stacktrace: ... BaseThreadInitThunk [0x760E6739+25] RtlGetFullPathName_UEx [0x776A8E7F+1215] RtlGetFullPathName_UEx [0x776A8E4D+1165]

I'm using python 3.8.16, UnlimitedGPT-0.1.9.3 headless=False on windows11. Here's the code to call to the api: api = ChatGPT(session_token) def get_response(text): api.reset_conversation() message = api.send_message(text, input_mode="SLOW", # Can be INSTANT or SLOW input_delay=0.1 # Only used when input_mode is set to SLOW )
return message.response i'm waiting 10 seconds between iterations.

theAbdoSabbagh commented 1 year ago

Hello, thanks for reporting this bug. Currently I'm a bit busy as I've recently enrolled at a university and I have very limited free time now. Once I'm free I'll look into this issue.