diezo / ProGPT

🔥 Free GPT-3.5 Python API
https://buymeacoffee.com/sonii
MIT License
56 stars 8 forks source link

access_token reqest ok 200 -What KeyError #6

Open avtosubaru25 opened 4 months ago

avtosubaru25 commented 4 months ago

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?"))

diezo commented 4 months ago

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

justin321123 commented 4 months ago

@avtosubaru25 Duplicate of #5.