🔧 fix(Shared Links): Handling Shared Link Errors (#3118)

* refactor: add error handling in Share model

* refactor: add error handing to API routers

* refactor: display error message when API response is an error

* chore: remove unneccesary JSON.stringify

* chore: revert unintended changes

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
Yuichi Oneda 2024-06-21 07:12:37 -07:00 committed by GitHub
parent 3172381bad
commit 4e4de88faa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 323 additions and 75 deletions

View file

@ -96,6 +96,8 @@ export default {
com_ui_create_link: 'צור קישור',
com_ui_share_link_to_chat: 'שתף קישור בצ\'אט',
com_ui_share_error: 'אירעה שגיאה בעת שיתוף קישור הצ\'אט',
com_ui_share_retrieve_error: 'אירעה שגיאה בעת מחיקת הקישור המשותף.',
com_ui_share_delete_error: 'אירעה שגיאה בעת מחיקת הקישור המשותף.',
com_ui_share_create_message: 'שמך וכל הודעה שתוסיף לאחר השיתוף יישארו פרטיים.',
com_ui_share_created_message:
'A shared link to your chat has been created. Manage previously shared chats at any time via Settings.',
@ -759,6 +761,14 @@ export const comparisons = {
english: 'Share link to chat',
translated: 'שתף קישור בצ\'אט',
},
com_ui_share_retrieve_error: {
english: 'There was an error deleting the shared link.',
translated: 'אירעה שגיאה בעת מחיקת הקישור המשותף.',
},
com_ui_share_delete_error: {
english: 'There was an error deleting the shared link.',
translated: 'אירעה שגיאה בעת מחיקת הקישור המשותף.',
},
com_ui_share_error: {
english: 'There was an error sharing the chat link',
translated: 'אירעה שגיאה בעת שיתוף קישור הצ\'אט',