UnlimitedGPT icon indicating copy to clipboard operation
UnlimitedGPT copied to clipboard

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

Open mpetruc opened this issue 1 year ago • 1 comments

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.

mpetruc avatar Aug 22 '23 15:08 mpetruc