Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

access_token reqest ok 200 -What KeyError #6

@avtosubaru25

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

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