mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 11:50:14 +01:00
🔧 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:
parent
3172381bad
commit
4e4de88faa
23 changed files with 323 additions and 75 deletions
|
|
@ -137,6 +137,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: '已创建到您聊天的共享链接。可以通过设置随时管理以前共享的聊天。',
|
||||
com_ui_share_update_message: '您的名字、定制指令及您在分享后添加的任何消息将保持私密。',
|
||||
|
|
@ -1073,6 +1075,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: '分享聊天链接时发生错误',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue