✍️ 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

@ -446,6 +446,7 @@ export default {
com_nav_theme_dark: 'Oscuro',
com_nav_theme_light: 'Claro',
com_nav_user_name_display: 'Mostrar nombre de usuario en los mensajes',
com_nav_save_drafts: 'Guardar borradores localmente',
com_nav_show_code: 'Mostrar siempre el código cuando se use el intérprete de código',
com_nav_clear_all_chats: 'Borrar todos los chats',
com_nav_confirm_clear: 'Confirmar borrado',
@ -2188,6 +2189,10 @@ export const comparisons = {
english: 'Display username in messages',
translated: 'Mostrar nombre de usuario en los mensajes',
},
com_nav_save_drafts: {
english: 'Save drafts locally',
translated: 'Guardar borradores localmente',
},
com_nav_show_code: {
english: 'Always show code when using code interpreter',
translated: 'Mostrar siempre el código cuando se use el intérprete de código',