matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
230 stars 64 forks source link

Error info not forwarded #209

Open NicodemPL opened 11 months ago

NicodemPL commented 11 months ago

When using too much text in response I receive just short info: "The bot has encountered an error, please contact your administrator (Error code Unknown)."

While in logs its clear what happened: "Mon, 24 Jul 2023 11:35:41 GMT [ERROR] [OpenAI-API Error: Error: Prompt is too long. Max token count is 3071, but prompt is 5746 tokens long.]"

Would be nice to forward via chat info about the [ERROR] messages from log.