Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

access_token reqest ok 200 -What KeyError #6

Open
avtosubaru25 opened this issue Feb 14, 2024 · 2 comments
Open

access_token reqest ok 200 -What KeyError #6

avtosubaru25 opened this issue Feb 14, 2024 · 2 comments

Comments

@avtosubaru25
Copy link

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
Copy link
Owner

diezo commented Feb 14, 2024

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

@justin321123
Copy link

justin321123 commented Feb 14, 2024

@avtosubaru25 Duplicate of #5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants