✍️ feat: Automatic Save and Restore for Chat (#2942)

* feat: added "Save draft locally" to Message settings

* feat: add hook to save chat input as draft every second

* fix: use filepath if the file does not have a preview prop

* fix: not to delete temporary files when navigating to a new chat

* chore: translations

* chore: import order

* chore: import order

---------

Co-authored-by: Danny Avila <danacordially@gmail.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
Yuichi Oneda 2024-06-13 06:52:30 -07:00 committed by GitHub
parent e9bbf39618
commit 29e71e98ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 345 additions and 5 deletions

View file

@ -519,6 +519,7 @@ export default {
com_nav_my_files: '我的檔案',
com_nav_enter_to_send: '按 Enter 鍵傳送訊息',
com_nav_user_name_display: '在訊息中顯示使用者名稱',
com_nav_save_drafts: '保存草稿本地',
com_nav_show_code: '一律顯示使用程式碼解譯器時的程式碼',
com_nav_setting_beta: '測試功能',
com_nav_setting_account: '帳號',
@ -2528,6 +2529,10 @@ export const comparisons = {
english: 'Display username in messages',
translated: '在訊息中顯示使用者名稱',
},
com_nav_save_drafts: {
english: 'Save drafts locally',
translated: '保存草稿本地',
},
com_nav_show_code: {
english: 'Always show code when using code interpreter',
translated: '一律顯示使用程式碼解譯器時的程式碼',