lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS/Plugins/Artifacts). One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
45.75k stars 10.23k forks source link

[Request] Add, remove, reorder messages and assign/reassign roles #2065

Open Algorithm5838 opened 7 months ago

Algorithm5838 commented 7 months ago

🥰 Feature Description

Currently, in lobe-chat, there is no way to modify the conversation history or reassign roles (user, assistant, system) to existing messages.

🧐 Proposed Solution

Implement methods to:

  1. Add new messages to the conversation history
  2. Remove existing messages from the conversation history
  3. Reorder messages in the conversation history
  4. Assign or reassign roles (user, assistant, system) to existing messages

📝 Additional Information

This feature would greatly improve the usability and flexibility of lobe-chat, allowing users to curate and modify conversation histories as needed. Similar functionality is already implemented in other projects like BetterChatGPT and NextChat.

lobehubbot commented 7 months ago

👀 @Algorithm5838

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 7 months ago

Remove existing messages from the conversation history

there is a delete button

Algorithm5838 commented 7 months ago

You're right, I was considering a separate settings UI that would handle the features I mentioned. However, you could implement them within the same UI as well.