Skip to content

The program cannot work continuously. #18

@Voldeemort

Description

@Voldeemort

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions