🔧 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

@ -152,6 +152,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:
@ -1140,6 +1142,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: 'チャットの共有リンクの共有中にエラーが発生しました',