father-bot / chatgpt_telegram_bot

💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
https://t.me/chatgpt_karfly_bot
MIT License
5.18k stars 1.81k forks source link

Provide user higher control over the chat history #417

Open JonahWhaler opened 11 months ago

JonahWhaler commented 11 months ago

What I see

  1. Old dialog accumulated in the DB and we can't use them.
  2. Can't hold long (in terms of time) conversation with the chat bot.
  3. Switch around modes results in new dialog.

What I did

  1. Allow user to remove all chat history.
  2. Set use_new_dialog_timeout to False.
  3. Remove current dialog when /new is triggered.
  4. Try resume dialog when user switch between modes.
wedontdozero commented 1 month ago

Is it possible to review the data accumulated in the DB? @JonahTzuChi

JonahWhaler commented 1 month ago

Is it possible to review the data accumulated in the DB? @JonahTzuChi

Yes.

wedontdozero commented 1 month ago

Is it possible to review the data accumulated in the DB? @JonahTzuChi

Yes.

Mind showing me how?

JonahWhaler commented 1 month ago

Is it possible to review the data accumulated in the DB? @JonahTzuChi

Yes.

Mind showing me how?

It's technically possible but I didn't implement this feature because I don't have plan to view the conversation through the Bot. You can achieve that through query from the database.