chatgpt_telegram_bot
chatgpt_telegram_bot copied to clipboard
Use Telegram editMessageText API to stream the reply
Improve user experiment by using the editMessageText API to return the partial results.
A demo in https://twitter.com/wsvn53/status/1633799055167066113
Related #105
Wow! It's a great feature. I'll work on it
Hi, it would be great if you could also include the text formatting similar to the demo mentioned. Thank you in advance!
I've just implemented message streaming feature. It appeared to be a really hard task. Big thanks to @gkorepanov for helping!
@gkorepanov @lqhl @hamed-ehtesham @CCCAUCHY @ronpay and other Guys, it would be really great if you helped me with testing this feature! I'm not going to push it to main until it has been tested by someone else 😌
It's on the stream
branch. Here's PR.
@gkorepanov @lqhl @hamed-ehtesham @CCCAUCHY @ronpay @ngn999 @clemsau Short demo of streaming (just to motivate you to test 😄)
I have deployed the stream branch to fly.io, and it is working perfectly.
@karfly I deployed it on a google cloud VM using docker-compose, and it works perfectly. Thank you for your work!
In my case, openai api always returns leading "\n\n" as the first message. This leads to error in tg: Reason: Message must be non-empty
.
Am I alone?
@flymin it's a bug. I'll fix it in a while
@flymin try it now with latest commit in stream
I tested locally and the functionality is good.
MERGED 🎉
What is needed to create streaming? Maybe there is material to study?