TeleGPT icon indicating copy to clipboard operation
TeleGPT copied to clipboard

The program cannot work continuously.

Open Voldeemort opened this issue 1 year ago • 0 comments

I have found an issue with this program, it cannot work continuously and often needs to be manually executed or reset to work normally. I also noticed that your demo program has the same problem. If we continuously send messages, it will keep displaying "Thinking..." and the following log will appear:

DEBUG telegpt_core::dispatcher          > nssss sent a message: 你好
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
OpenAI response: Ok(
   ChatModelResult {
       content: "",
       token_usage: 3413,
   },
)
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
TRACE want                              > signal: Want
ERROR telegpt_core::modules::chat       > failed to send message (will fallback to raw contents): A Telegram's error: Bad Request: message text is empty
TRACE want                              > signal: Want
TRACE want                              > signal: Want
ERROR telegpt_core::modules::chat       > Failed to handle chat message: A Telegram's error: Bad Request: message text is empty

Voldeemort avatar Mar 31 '23 09:03 Voldeemort