Skip to content

access_token reqest ok 200 -What KeyError #6

Description

@avtosubaru25

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions