ProGPT icon indicating copy to clipboard operation
ProGPT copied to clipboard

access_token reqest ok 200 -What KeyError

Open avtosubaru25 opened this issue 1 year ago • 2 comments

File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1500, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "Z:\Pyton\claimclicks_bot\gpt_temp.py", line 4, in print(bot.prompt("hello")) File "Z:\Pyton\claimclicks_bot\venv\lib\site-packages\ProGPT\Generative.py", line 84, in prompt if data["message"]["status"] != "finished_successfully": KeyError: 'message'

from ProGPT import Generative access_token="***********" bot = Generative(access_token) print(bot.prompt("hello")) print(bot.prompt("how are you?"))

avtosubaru25 avatar Feb 14 '24 17:02 avtosubaru25

@avtosubaru25 I've figured out the cause of this problem, and will update you once I implement the solution. Thanks.

diezo avatar Feb 14 '24 18:02 diezo

@avtosubaru25 Duplicate of #5.

justin321123 avatar Feb 14 '24 20:02 justin321123