Open aleung opened 7 months ago
👀 @aleung
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
🥰 Description of requirements
The current configuration import function will be skipped when the corresponding data type already exists locally (displayed in the "Duplicate Skip" count in the import completion dialog box). It is hoped that an option can be added during import to allow overwriting of existing local data.
I'm not sure if overwriting should be allowed for all types of data, but it's necessary for "helper" types at least.
When the id of the imported data is the same as the id of the local data, the corresponding local data is overwritten.
Usage scenarios: I use lobe chat on my office and home computers. During use, I optimize the assistant's prompt and other parameters from time to time. I export all Assistant settings and sync files to other computers before shutting down the computer. However, when importing the configuration from another computer, the modified assistant parameters could not be imported and were skipped.
Due to network reasons and the inability to power on at the same time, the WebRTC synchronization function cannot be tried.
可以,后续我们会优化导入的交互,后续优化时一并考虑
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Yes, we will optimize the imported interactions in the future and consider them together in subsequent optimizations.
🥰 需求描述
目前的配置导入功能,当对应数据类型在本地已经存在的时候,会被跳过(在导入完成的对话框中显示在“重复跳过”计数中)。希望能够在导入时增加一个选项,允许覆盖本地已经存在的数据。
我不确定是不是应该对所有类型的数据都允许覆盖,但至少对于“助手”类型有必要。
🧐 解决方案
当导入数据的id与本地数据的id相同,覆盖对应的本地数据。
📝 补充信息
使用场景:我在办公室以及家里电脑上使用 lobe chat,在使用过程中不时会优化助手的 prompt 以及其他的一些参数。我会在关闭电脑前导出所有助手设置,同步文件到其他电脑。但是在另外的电脑导入配置时,修改后的助手参数无法导入,被跳过了。
由于网络原因以及不能同时开机,无法尝试WebRTC同步功能。