nalgeon / pokitoki

Humble GPT Telegram Bot
MIT License
317 stars 56 forks source link

"Message is too long" #36

Closed TimofeyTishkin closed 10 months ago

TimofeyTishkin commented 10 months ago

Hi, I've just followed every step of the Setup paragraph and the bot says it's too long literally for every message except commands. Any ideas why this happens? Please help... IMG_20240126_192658_883

nalgeon commented 10 months ago

There is probably something wrong with config, and the exception text you get is too long for Telegram to display, so you get "message is too long" instead of the actual error. If you update to the latest revision, you'll (hopefully) see the actual error now.

TimofeyTishkin commented 10 months ago

Thanks! It worked, and the real problem is "openai.PermissionDeniedError". Says it's because API key os incorrect. Is it not okay to use personal key?

nalgeon commented 10 months ago

No idea :)

nalgeon commented 10 months ago

Possible reasons I can think of:

In any case, the problem is not with the bot itself.