@lobehub/chat 0.108.0 → 0.109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +24 -4
  3. package/README.zh-CN.md +24 -4
  4. package/docs/Environment-Variable.md +2 -2
  5. package/docs/Environment-Variable.zh-CN.md +2 -2
  6. package/locales/en_US/plugin.json +19 -0
  7. package/locales/en_US/setting.json +26 -0
  8. package/locales/ja_JP/plugin.json +19 -0
  9. package/locales/ja_JP/setting.json +26 -0
  10. package/locales/ko_KR/plugin.json +19 -0
  11. package/locales/ko_KR/setting.json +26 -0
  12. package/locales/ru_RU/plugin.json +19 -0
  13. package/locales/ru_RU/setting.json +26 -0
  14. package/locales/zh_CN/plugin.json +19 -0
  15. package/locales/zh_CN/setting.json +26 -5
  16. package/locales/zh_TW/plugin.json +19 -0
  17. package/locales/zh_TW/setting.json +26 -0
  18. package/package.json +3 -3
  19. package/src/app/chat/features/ChatHeader/PluginTag/PluginStatus.tsx +6 -6
  20. package/src/app/chat/features/ChatHeader/PluginTag/index.tsx +4 -4
  21. package/src/app/chat/features/ChatInput/ActionBar/Tools/ToolItem.tsx +37 -0
  22. package/src/app/chat/features/ChatInput/ActionBar/Tools/index.tsx +116 -0
  23. package/src/app/chat/features/ChatInput/ActionBar/config.ts +3 -1
  24. package/src/app/chat/features/Conversation/ChatList/Error/Plugin/PluginSettings.tsx +4 -4
  25. package/src/app/chat/features/Conversation/ChatList/Plugins/Inspector/Settings.tsx +3 -3
  26. package/src/app/chat/features/Conversation/ChatList/Plugins/Inspector/index.tsx +4 -4
  27. package/src/app/chat/features/Conversation/ChatList/Plugins/Render/DefaultType/index.tsx +2 -2
  28. package/src/app/chat/features/Conversation/ChatList/Plugins/Render/StandaloneType/Iframe.tsx +4 -4
  29. package/src/app/chat/features/Conversation/ChatList/Plugins/Render/StandaloneType/index.tsx +2 -2
  30. package/src/app/chat/features/Conversation/useInitConversation.ts +2 -2
  31. package/src/app/settings/common/Common.tsx +2 -2
  32. package/src/features/AgentSetting/AgentPlugin/AddPluginButton.tsx +56 -0
  33. package/src/features/AgentSetting/AgentPlugin/LoadingList.tsx +48 -0
  34. package/src/features/AgentSetting/AgentPlugin/LocalPluginItem.tsx +5 -5
  35. package/src/features/AgentSetting/AgentPlugin/PluginAction/index.tsx +36 -0
  36. package/src/features/AgentSetting/AgentPlugin/index.tsx +157 -9
  37. package/src/features/AgentSetting/store/action.ts +0 -1
  38. package/src/features/PluginDevModal/MetaForm.tsx +3 -3
  39. package/src/features/PluginDevModal/PluginPreview.tsx +1 -1
  40. package/src/features/PluginDevModal/index.tsx +4 -1
  41. package/src/features/PluginSettings/index.tsx +3 -3
  42. package/src/features/PluginSettingsModal/index.tsx +22 -17
  43. package/src/features/PluginStore/Loading.tsx +13 -0
  44. package/src/features/PluginStore/PluginItem.tsx +81 -0
  45. package/src/features/PluginStore/PluginSettings.tsx +40 -0
  46. package/src/features/{AgentSetting/AgentPlugin/MarketSettingModal.tsx → PluginStore/StoreSetting.tsx} +2 -2
  47. package/src/features/PluginStore/index.tsx +95 -0
  48. package/src/layout/GlobalLayout/StoreHydration.tsx +3 -3
  49. package/src/locales/default/plugin.ts +19 -0
  50. package/src/locales/default/setting.ts +26 -5
  51. package/src/services/__tests__/chat.test.ts +221 -0
  52. package/src/services/__tests__/message.test.ts +333 -0
  53. package/src/services/__tests__/plugin.test.ts +88 -0
  54. package/src/services/__tests__/session.test.ts +227 -0
  55. package/src/services/__tests__/topic.test.ts +220 -0
  56. package/src/services/chat.ts +4 -6
  57. package/src/services/plugin.ts +12 -1
  58. package/src/store/chat/actions/message.test.ts +0 -1
  59. package/src/store/session/slices/agent/action.ts +24 -8
  60. package/src/store/{plugin → tool}/helpers.ts +3 -14
  61. package/src/store/tool/index.ts +2 -0
  62. package/src/store/tool/initialState.ts +11 -0
  63. package/src/store/tool/selectors.ts +3 -0
  64. package/src/store/tool/slices/customPlugin/action.test.ts +164 -0
  65. package/src/store/{plugin → tool}/slices/customPlugin/action.ts +2 -2
  66. package/src/store/tool/slices/customPlugin/selectors.test.ts +59 -0
  67. package/src/store/tool/slices/customPlugin/selectors.ts +9 -0
  68. package/src/store/tool/slices/plugin/action.test.ts +141 -0
  69. package/src/store/tool/slices/plugin/action.ts +95 -0
  70. package/src/store/{plugin → tool}/slices/plugin/initialState.ts +0 -7
  71. package/src/store/{plugin → tool/slices/plugin}/selectors.test.ts +4 -41
  72. package/src/store/{plugin → tool/slices/plugin}/selectors.ts +17 -19
  73. package/src/store/tool/slices/store/action.test.ts +396 -0
  74. package/src/store/tool/slices/store/action.ts +103 -0
  75. package/src/store/tool/slices/store/index.ts +3 -0
  76. package/src/store/tool/slices/store/initialState.ts +17 -0
  77. package/src/store/tool/slices/store/selectors.test.ts +48 -0
  78. package/src/store/tool/slices/store/selectors.ts +21 -0
  79. package/src/store/{plugin → tool}/store.ts +8 -6
  80. package/vitest.config.ts +1 -0
  81. package/src/features/AgentSetting/AgentPlugin/MarketList.tsx +0 -232
  82. package/src/features/AgentSetting/AgentPlugin/PluginSettings.tsx +0 -80
  83. package/src/store/chat/reducers/files.test.ts +0 -38
  84. package/src/store/chat/reducers/files.ts +0 -37
  85. package/src/store/plugin/hooks/useSessionHydrated.ts +0 -21
  86. package/src/store/plugin/index.ts +0 -2
  87. package/src/store/plugin/initialState.ts +0 -9
  88. package/src/store/plugin/slices/plugin/action.ts +0 -173
  89. /package/src/store/{plugin → tool}/slices/customPlugin/index.ts +0 -0
  90. /package/src/store/{plugin → tool}/slices/customPlugin/initialState.ts +0 -0
  91. /package/src/store/{plugin → tool}/slices/customPlugin/reducers/customPluginList.ts +0 -0
  92. /package/src/store/{plugin → tool}/slices/plugin/index.ts +0 -0
  93. /package/src/store/{plugin → tool}/slices/plugin/reducers/manifest.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.109.1](https://github.com/lobehub/lobe-chat/compare/v0.109.0...v0.109.1)
6
+
7
+ <sup>Released on **2023-12-07**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix agent settings crash with old pluginManifest.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix agent settings crash with old pluginManifest ([8b80dfd](https://github.com/lobehub/lobe-chat/commit/8b80dfd))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ## [Version 0.109.0](https://github.com/lobehub/lobe-chat/compare/v0.108.0...v0.109.0)
31
+
32
+ <sup>Released on **2023-12-06**</sup>
33
+
34
+ #### ✨ Features
35
+
36
+ - **misc**: Introducing plugin store and refactor with tool concept.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's improved
44
+
45
+ - **misc**: Introducing plugin store and refactor with tool concept, closes [#573](https://github.com/lobehub/lobe-chat/issues/573) ([92f43d1](https://github.com/lobehub/lobe-chat/commit/92f43d1))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ## [Version 0.108.0](https://github.com/lobehub/lobe-chat/compare/v0.107.16...v0.108.0)
6
56
 
7
57
  <sup>Released on **2023-12-03**</sup>
package/README.md CHANGED
@@ -27,7 +27,7 @@ Supports one-click free deployment of your private ChatGPT/LLM web application.
27
27
  [![][github-stars-shield]][github-stars-link]
28
28
  [![][github-issues-shield]][github-issues-link]
29
29
  [![][github-license-shield]][github-license-link]<br>
30
- [![](https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square)](https://opencollective.com/lobehub 'Sponsor LobeHub on open-collective')
30
+ [![][sponsor-shield]][sponsor-link]
31
31
 
32
32
  **Share LobeChat Repository**
33
33
 
@@ -59,6 +59,7 @@ Supports one-click free deployment of your private ChatGPT/LLM web application.
59
59
  - [🧩 Plugins](#-plugins)
60
60
  - [⌨️ Local Development](#️-local-development)
61
61
  - [🤝 Contributing](#-contributing)
62
+ - [🩷 Sponsor](#-sponsor)
62
63
  - [🔗 More Products](#-more-products)
63
64
 
64
65
  ####
@@ -205,12 +206,12 @@ Our marketplace is not just a showcase platform but also a collaborative space.
205
206
 
206
207
  | Recent Submits | Description |
207
208
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
209
+ | [Mr. Feynman](https://chat-preview.lobehub.com/market?agent=mrfeynman)<br/><sup>By **[jjy1000](https://github.com/jjy1000)** on **2023-12-04**</sup> | Explains complex knowledge concepts in a popular way to help you understand complex knowledge concepts. It can also explain knowledge types containing answers and questions.<br/>`general-teacher-assistant` |
208
210
  | [Organic Chemistry Researcher](https://chat-preview.lobehub.com/market?agent=organic-chemistry-researcher)<br/><sup>By **[y22emc2](https://github.com/y22emc2)** on **2023-12-02**</sup> | Specializes in academic translation and writing in the field of organic chemistry<br/>`organic-chemistry` `research` `translation` `writing` `academic-articles` |
209
211
  | [JS Code Quality Optimization](https://chat-preview.lobehub.com/market?agent=js-code-quality)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2023-11-22**</sup> | Dedicated to clean and elegant code refactoring<br/>`refactoring` `code-optimization` `code-quality` |
210
212
  | [LobeChat Test Engineer](https://chat-preview.lobehub.com/market?agent=lobe-chat-unit-test-dev)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2023-11-22**</sup> | Proficient in writing frontend automation tests, especially comprehensive test coverage for TypeScript applications. Skilled in using the Vitest testing framework with a deep understanding of testing principles and strategies.<br/>`automation-testing` `testing` `lobe-chat` `frontend` |
211
- | [Q\&A Document Conversion Expert](https://chat-preview.lobehub.com/market?agent=q-a-helper)<br/><sup>By **[barryWang12138](https://github.com/barryWang12138)** on **2023-11-22**</sup> | Please provide your document content, and I will segment and clean it according to your requirements, and provide answers in a standardized format.<br/>`q-a` `document` |
212
213
 
213
- > 📊 Total agents: [<kbd>**53**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
214
+ > 📊 Total agents: [<kbd>**54**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
214
215
 
215
216
  <!-- AGENT LIST -->
216
217
 
@@ -393,7 +394,7 @@ This project provides some additional configuration items set with environment v
393
394
  | `OPENAI_API_KEY` | Yes | This is the API key you apply on the OpenAI account page | `sk-xxxxxx...xxxxxx` |
394
395
  | `OPENAI_PROXY_URL` | No | If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | `https://api.chatanywhere.cn/v1`<br/>The default value is<br/>`https://api.openai.com/v1` |
395
396
  | `OPENAI_FUNCTION_REGIONS` | No | When you deploy Lobe-Chat using Vercel and need to specify the region for the Edge Function that handles requests to the OpenAI API, you can use this configuration. The value should be a comma-separated array of strings. | `iad1,sfo1` |
396
- | `ACCESS_CODE` | No | Add a password to access this service; the password should be a 6-digit number or letter | `awCT74` or `e3@09!` |
397
+ | `ACCESS_CODE` | No | Add a password to access this service; you can set a long password to avoid leaking | `awCTe)re_r74` or `rtrt_ewee3@09!` |
397
398
 
398
399
  > \[!NOTE]
399
400
  >
@@ -512,6 +513,23 @@ Contributions of all types are more than welcome; if you are interested in contr
512
513
 
513
514
  </div>
514
515
 
516
+ ## 🩷 Sponsor
517
+
518
+ Every bit counts and your one-time donation sparkles in our galaxy of support! You're a shooting star, making a swift and bright impact on our journey. Thank you for believing in us – your generosity guides us toward our mission, one brilliant flash at a time.
519
+
520
+ <a href="https://opencollective.com/lobehub" target="_blank">
521
+ <picture>
522
+ <source media="(prefers-color-scheme: dark)" srcset="https://readme-wizard.lobehub.com/api/sponsor?themeMode=dark">
523
+ <img src="https://readme-wizard.lobehub.com/api/sponsor">
524
+ </picture>
525
+ </a>
526
+
527
+ <div align="right">
528
+
529
+ [![][back-to-top]](#readme-top)
530
+
531
+ </div>
532
+
515
533
  ## 🔗 More Products
516
534
 
517
535
  - **[🤯 Lobe Theme][lobe-theme]:** The modern theme for Stable Diffusion WebUI, exquisite interface design, highly customizable UI, and efficiency-boosting features.
@@ -613,6 +631,8 @@ This project is [MIT](./LICENSE) licensed.
613
631
  [share-whatsapp-shield]: https://img.shields.io/badge/-share%20on%20whatsapp-black?labelColor=black&logo=whatsapp&logoColor=white&style=flat-square
614
632
  [share-x-link]: https://x.com/intent/tweet?hashtags=chatbot%2CchatGPT%2CopenAI&text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
615
633
  [share-x-shield]: https://img.shields.io/badge/-share%20on%20x-black?labelColor=black&logo=x&logoColor=white&style=flat-square
634
+ [sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
635
+ [sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
616
636
  [submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
617
637
  [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
618
638
  [submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
package/README.zh-CN.md CHANGED
@@ -26,7 +26,7 @@ LobeChat 是开源的高性能聊天机器人框架,支持语音合成、多
26
26
  [![][github-stars-shield]][github-stars-link]
27
27
  [![][github-issues-shield]][github-issues-link]
28
28
  [![][github-license-shield]][github-license-link]<br>
29
- [![](https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square)](https://opencollective.com/lobehub 'Sponsor LobeHub on open-collective')
29
+ [![][sponsor-shield]][sponsor-link]
30
30
 
31
31
  **分享 LobeChat 给你的好友**
32
32
 
@@ -56,6 +56,7 @@ LobeChat 是开源的高性能聊天机器人框架,支持语音合成、多
56
56
  - [🧩 插件体系](#-插件体系)
57
57
  - [⌨️ 本地开发](#️-本地开发)
58
58
  - [🤝 参与贡献](#-参与贡献)
59
+ - [🩷 感谢赞助](#-感谢赞助)
59
60
  - [🔗 更多工具](#-更多工具)
60
61
 
61
62
  ####
@@ -182,12 +183,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
182
183
 
183
184
  | 最近新增 | 助手说明 |
184
185
  | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
186
+ | [Mr. Feynman](https://chat-preview.lobehub.com/market?agent=mrfeynman)<br/><sup>By **[jjy1000](https://github.com/jjy1000)** on **2023-12-04**</sup> | 对你提出的复杂知识概念进行通俗性解释,帮助你理解复杂的知识概念。同时可以对包含答案和问题的知识类型进行解释。<br/>`通用教师助手` |
185
187
  | [有机化学研究员](https://chat-preview.lobehub.com/market?agent=organic-chemistry-researcher)<br/><sup>By **[y22emc2](https://github.com/y22emc2)** on **2023-12-02**</sup> | 擅长有机化学领域的学术翻译和写作<br/>`有机化学` `科研` `翻译` `写作` `学术文章` |
186
188
  | [JS 代码质量优化](https://chat-preview.lobehub.com/market?agent=js-code-quality)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2023-11-22**</sup> | 致力于干净和优雅的代码重构<br/>`重构` `代码优化` `代码质量` |
187
189
  | [LobeChat 测试工程师](https://chat-preview.lobehub.com/market?agent=lobe-chat-unit-test-dev)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2023-11-22**</sup> | 擅长编写前端自动化测试,特别是 TypeScript 应用的全面测试覆盖。熟练使用 Vitest 测试框架,具备深入的测试原理和策略理解。<br/>`自动化测试` `测试` `lobe-chat` `前端` |
188
- | [问答文档转换专家](https://chat-preview.lobehub.com/market?agent=q-a-helper)<br/><sup>By **[barryWang12138](https://github.com/barryWang12138)** on **2023-11-22**</sup> | 请提供您的文档内容,我将根据您的要求进行分段和清洗,并按照规范的格式回答。<br/>`q-a` `文档` |
189
190
 
190
- > 📊 Total agents: [<kbd>**53**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
191
+ > 📊 Total agents: [<kbd>**54**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
191
192
 
192
193
  <!-- AGENT LIST -->
193
194
 
@@ -365,7 +366,7 @@ $ docker run -d -p 3210:3210 \
365
366
  | `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
366
367
  | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn/v1`<br/>默认值:<br/>`https://api.openai.com/v1` |
367
368
  | `OPENAI_FUNCTION_REGIONS` | 可选 | 当你使用 Vercel 部署 Lobe-Chat,而且有需求指定响应调用 OpenAI 接口的请求的 Edge Function 的 Region 时,可以使用该配置进行配置,该值的类型为逗号分隔的字符串数组 | `iad1,sfo1` |
368
- | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,密码应为 6 位数字或字母 | `awCT74` 或 `e3@09!` |
369
+ | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,你可以设置一个长密码以防被爆破 | `awCTe)re_r74` or `rtrt_ewee3@09!` |
369
370
 
370
371
  > \[!NOTE]
371
372
  >
@@ -484,6 +485,23 @@ $ bun run dev
484
485
 
485
486
  </div>
486
487
 
488
+ ## 🩷 感谢赞助
489
+
490
+ 每一分支持都珍贵无比,汇聚成我们支持的璀璨银河!你就像一颗划破夜空的流星,瞬间点亮我们前行的道路。感谢你对我们的信任 —— 你的支持笔就像星辰导航,一次又一次地为项目指明前进的光芒。
491
+
492
+ <a href="https://opencollective.com/lobehub" target="_blank">
493
+ <picture>
494
+ <source media="(prefers-color-scheme: dark)" srcset="https://readme-wizard.lobehub.com/api/sponsor?themeMode=dark">
495
+ <img src="https://readme-wizard.lobehub.com/api/sponsor">
496
+ </picture>
497
+ </a>
498
+
499
+ <div align="right">
500
+
501
+ [![][back-to-top]](#readme-top)
502
+
503
+ </div>
504
+
487
505
  ## 🔗 更多工具
488
506
 
489
507
  - [🤯 Lobe Theme][lobe-theme] : Stable Diffusion WebUI 的现代主题,精致的界面设计,高度可定制的 UI,以及提高效率的功能。
@@ -585,6 +603,8 @@ This project is [MIT](./LICENSE) licensed.
585
603
  [share-whatsapp-shield]: https://img.shields.io/badge/-share%20on%20whatsapp-black?labelColor=black&logo=whatsapp&logoColor=white&style=flat-square
586
604
  [share-x-link]: https://x.com/intent/tweet?hashtags=chatbot%2CchatGPT%2CopenAI&text=%E6%8E%A8%E8%8D%90%E4%B8%80%E4%B8%AA%20GitHub%20%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%20%F0%9F%A4%AF%20LobeChat%20-%20%E5%BC%80%E6%BA%90%E7%9A%84%E3%80%81%E5%8F%AF%E6%89%A9%E5%B1%95%E7%9A%84%EF%BC%88Function%20Calling%EF%BC%89%E9%AB%98%E6%80%A7%E8%83%BD%E8%81%8A%E5%A4%A9%E6%9C%BA%E5%99%A8%E4%BA%BA%E6%A1%86%E6%9E%B6%E3%80%82%0A%E5%AE%83%E6%94%AF%E6%8C%81%E4%B8%80%E9%94%AE%E5%85%8D%E8%B4%B9%E9%83%A8%E7%BD%B2%E7%A7%81%E4%BA%BA%20ChatGPT%2FLLM%20%E7%BD%91%E9%A1%B5%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
587
605
  [share-x-shield]: https://img.shields.io/badge/-share%20on%20x-black?labelColor=black&logo=x&logoColor=white&style=flat-square
606
+ [sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
607
+ [sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
588
608
  [submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
589
609
  [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
590
610
  [submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
@@ -27,9 +27,9 @@ LobeChat provides additional configuration options during deployment, which can
27
27
  ### `ACCESS_CODE`
28
28
 
29
29
  - Type: Optional
30
- - Description: Add a password to access the LobeChat service, the password should be 6 digits or letters
30
+ - Description: Add a password to access the LobeChat service, ; you can set a long password to avoid leaking.
31
31
  - Default: `-`
32
- - Example: `awCT74` or `e3@09!`
32
+ - Example: `awCTe)re_r74` or `rtrt_ewee3@09!`
33
33
 
34
34
  ### `NEXT_PUBLIC_CUSTOM_MODELS`
35
35
 
@@ -27,9 +27,9 @@ LobeChat 在部署时提供了一些额外的配置项,使用环境变量进
27
27
  ### `ACCESS_CODE`
28
28
 
29
29
  - 类型:可选
30
- - 描述:添加访问 LobeChat 服务的密码,密码应为 6 位数字或字母
30
+ - 描述:添加访问 LobeChat 服务的密码,你可以设置一个长密码以防被爆破
31
31
  - 默认值:-
32
- - 示例:`awCT74` 或 `e3@09!`
32
+ - 示例:`awCTe)re_r74` or `rtrt_ewee3@09!`
33
33
 
34
34
  ### `NEXT_PUBLIC_CUSTOM_MODELS`
35
35
 
@@ -83,6 +83,12 @@
83
83
  "update": "Update",
84
84
  "updateSuccess": "Plugin settings updated successfully"
85
85
  },
86
+ "error": {
87
+ "fetchError": "Request failed",
88
+ "installError": "Plugin {{name}} installation failed",
89
+ "manifestInvalid": "Invalid manifest file format",
90
+ "noManifest": "Manifest file does not exist"
91
+ },
86
92
  "list": {
87
93
  "item": {
88
94
  "local.config": "Configuration",
@@ -125,5 +131,18 @@
125
131
  },
126
132
  "modalDesc": "After configuring the address of the plugin marketplace, you can use a custom plugin marketplace",
127
133
  "title": "Configure Plugin Marketplace"
134
+ },
135
+ "store": {
136
+ "empty": "No installed plugins yet",
137
+ "install": "Install",
138
+ "installAllPlugins": "Install All",
139
+ "networkError": "Failed to fetch plugin store. Please check your network connection and try again",
140
+ "releasedAt": "Released at {{createdAt}}",
141
+ "tabs": {
142
+ "all": "All",
143
+ "installed": "Installed"
144
+ },
145
+ "title": "Plugin Store",
146
+ "uninstall": "Uninstall"
128
147
  }
129
148
  }
@@ -84,6 +84,20 @@
84
84
  },
85
85
  "waitingForMore": "<1>Access to other models is planned</1>, so stay tuned ✨"
86
86
  },
87
+ "plugin": {
88
+ "addTooltip": "Add Custom Plugin",
89
+ "clearDeprecated": "Remove Deprecated Plugins",
90
+ "empty": "No installed plugins yet, feel free to visit the <1>Plugin Store</1> to explore",
91
+ "installStatus": {
92
+ "deprecated": "Uninstalled"
93
+ },
94
+ "settings": {
95
+ "hint": "Please fill in the following configuration based on the description",
96
+ "title": "{{id}} Plugin Configuration",
97
+ "tooltip": "Plugin Configuration"
98
+ },
99
+ "store": "Plugin Store"
100
+ },
87
101
  "settingAgent": {
88
102
  "avatar": {
89
103
  "title": "Avatar"
@@ -293,5 +307,17 @@
293
307
  "common": "Common Settings",
294
308
  "llm": "Custom LLM API",
295
309
  "tts": "Speech Services"
310
+ },
311
+ "tools": {
312
+ "builtins": {
313
+ "groupName": "Built-in"
314
+ },
315
+ "plugins": {
316
+ "enabled": "Enabled {{num}}",
317
+ "groupName": "Plugins",
318
+ "noEnabled": "No enabled plugins yet",
319
+ "store": "Plugin Store"
320
+ },
321
+ "title": "Extensions"
296
322
  }
297
323
  }
@@ -82,6 +82,12 @@
82
82
  "update": "更新",
83
83
  "updateSuccess": "プラグインの設定が正常に更新されました"
84
84
  },
85
+ "error": {
86
+ "fetchError": "リクエストに失敗しました",
87
+ "installError": "プラグイン {{name}} のインストールに失敗しました",
88
+ "manifestInvalid": "マニフェストの形式が正しくありません",
89
+ "noManifest": "マニフェストが存在しません"
90
+ },
85
91
  "list": {
86
92
  "item": {
87
93
  "deprecated.title": "削除済み",
@@ -105,5 +111,18 @@
105
111
  },
106
112
  "modalDesc": "プラグインマーケットのアドレスを設定すると、カスタムのプラグインマーケットを使用できます",
107
113
  "title": "プラグインマーケットの設定"
114
+ },
115
+ "store": {
116
+ "empty": "インストールされたプラグインはありません",
117
+ "install": "インストール",
118
+ "installAllPlugins": "すべてのプラグインをインストール",
119
+ "networkError": "プラグインストアの取得に失敗しました。ネットワーク接続を確認してから再試行してください",
120
+ "releasedAt": "{{createdAt}} にリリース",
121
+ "tabs": {
122
+ "all": "すべて",
123
+ "installed": "インストール済み"
124
+ },
125
+ "title": "プラグインストア",
126
+ "uninstall": "アンインストール"
108
127
  }
109
128
  }
@@ -84,6 +84,20 @@
84
84
  },
85
85
  "waitingForMore": "他のモデルは現在 <1>計画中</1> です。お楽しみに ✨"
86
86
  },
87
+ "plugin": {
88
+ "addTooltip": "カスタムプラグインを追加",
89
+ "clearDeprecated": "無効なプラグインをクリア",
90
+ "empty": "インストールされたプラグインはありません。 <1>プラグインストア</1> で探索してください",
91
+ "installStatus": {
92
+ "deprecated": "アンインストール済み"
93
+ },
94
+ "settings": {
95
+ "hint": "説明に従って以下の設定を入力してください",
96
+ "title": "{{id}} プラグイン設定",
97
+ "tooltip": "プラグイン設定"
98
+ },
99
+ "store": "プラグインストア"
100
+ },
87
101
  "settingAgent": {
88
102
  "avatar": {
89
103
  "title": "アバター"
@@ -280,5 +294,17 @@
280
294
  "common": "一般設定",
281
295
  "llm": "言語モデル",
282
296
  "tts": "音声サービス"
297
+ },
298
+ "tools": {
299
+ "builtins": {
300
+ "groupName": "組み込み"
301
+ },
302
+ "plugins": {
303
+ "enabled": "{{num}} 個が有効",
304
+ "groupName": "プラグイン",
305
+ "noEnabled": "有効なプラグインはありません",
306
+ "store": "プラグインストア"
307
+ },
308
+ "title": "拡張ツール"
283
309
  }
284
310
  }
@@ -82,6 +82,12 @@
82
82
  "update": "업데이트",
83
83
  "updateSuccess": "플러그인 설정이 성공적으로 업데이트되었습니다."
84
84
  },
85
+ "error": {
86
+ "fetchError": "요청 실패",
87
+ "installError": "플러그인 {{name}} 설치 실패",
88
+ "manifestInvalid": "설명 파일 형식이 잘못되었습니다",
89
+ "noManifest": "설명 파일이 없습니다"
90
+ },
85
91
  "list": {
86
92
  "item": {
87
93
  "deprecated.title": "삭제됨",
@@ -105,5 +111,18 @@
105
111
  },
106
112
  "modalDesc": "플러그인 마켓의 주소를 구성하면 사용자 정의 플러그인 마켓을 사용할 수 있습니다.",
107
113
  "title": "플러그인 마켓 설정"
114
+ },
115
+ "store": {
116
+ "empty": "설치된 플러그인이 없습니다",
117
+ "install": "설치",
118
+ "installAllPlugins": "모두 설치",
119
+ "networkError": "플러그인 스토어를 가져오는 데 실패했습니다. 네트워크 연결을 확인한 후 다시 시도하십시오",
120
+ "releasedAt": "{{createdAt}}에 출시",
121
+ "tabs": {
122
+ "all": "모두",
123
+ "installed": "설치됨"
124
+ },
125
+ "title": "플러그인 스토어",
126
+ "uninstall": "제거"
108
127
  }
109
128
  }
@@ -84,6 +84,20 @@
84
84
  },
85
85
  "waitingForMore": "더 많은 모델이 <1>계획 중</1>에 있으니 기대해주세요 ✨"
86
86
  },
87
+ "plugin": {
88
+ "addTooltip": "사용자 정의 플러그인 추가",
89
+ "clearDeprecated": "사용되지 않는 플러그인 지우기",
90
+ "empty": "설치된 플러그인이 없습니다. <1>플러그인 상점</1>에서 살펴보세요",
91
+ "installStatus": {
92
+ "deprecated": "설치 취소됨"
93
+ },
94
+ "settings": {
95
+ "hint": "설명에 따라 아래 구성을 입력하십시오",
96
+ "title": "{{id}} 플러그인 구성",
97
+ "tooltip": "플러그인 구성"
98
+ },
99
+ "store": "플러그인 상점"
100
+ },
87
101
  "settingAgent": {
88
102
  "avatar": {
89
103
  "title": "아바타"
@@ -280,5 +294,17 @@
280
294
  "common": "일반 설정",
281
295
  "llm": "언어 모델",
282
296
  "tts": "음성 서비스"
297
+ },
298
+ "tools": {
299
+ "builtins": {
300
+ "groupName": "내장"
301
+ },
302
+ "plugins": {
303
+ "enabled": "{{num}}개 활성화됨",
304
+ "groupName": "플러그인",
305
+ "noEnabled": "활성화된 플러그인이 없습니다",
306
+ "store": "플러그인 상점"
307
+ },
308
+ "title": "확장 도구"
283
309
  }
284
310
  }
@@ -82,6 +82,12 @@
82
82
  "update": "Обновить",
83
83
  "updateSuccess": "Настройки плагина успешно обновлены"
84
84
  },
85
+ "error": {
86
+ "fetchError": "Ошибка запроса",
87
+ "installError": "Ошибка установки плагина {{name}}",
88
+ "manifestInvalid": "Неверный формат файла описания",
89
+ "noManifest": "Отсутствует файл описания"
90
+ },
85
91
  "list": {
86
92
  "item": {
87
93
  "deprecated.title": "Удалено",
@@ -105,5 +111,18 @@
105
111
  },
106
112
  "modalDesc": "После настройки адреса рынка плагинов можно использовать пользовательский рынок плагинов",
107
113
  "title": "Настройки рынка плагинов"
114
+ },
115
+ "store": {
116
+ "empty": "Нет установленных плагинов",
117
+ "install": "Установить",
118
+ "installAllPlugins": "Установить все",
119
+ "networkError": "Не удалось получить доступ к магазину плагинов. Пожалуйста, проверьте подключение к сети и повторите попытку",
120
+ "releasedAt": "Опубликовано {{createdAt}}",
121
+ "tabs": {
122
+ "all": "Все",
123
+ "installed": "Установленные"
124
+ },
125
+ "title": "Магазин плагинов",
126
+ "uninstall": "Удалить"
108
127
  }
109
128
  }
@@ -84,6 +84,20 @@
84
84
  },
85
85
  "waitingForMore": "<1>Планируется доступ к другим моделям</1>, так что следите за обновлениями ✨"
86
86
  },
87
+ "plugin": {
88
+ "addTooltip": "Добавить пользовательский плагин",
89
+ "clearDeprecated": "Удалить устаревшие плагины",
90
+ "empty": "Нет установленных плагинов, добро пожаловать в <1>Магазин плагинов</1>",
91
+ "installStatus": {
92
+ "deprecated": "Удалено"
93
+ },
94
+ "settings": {
95
+ "hint": "Пожалуйста, заполните следующие настройки на основе описания",
96
+ "title": "{{id}} Настройки плагина",
97
+ "tooltip": "Настройки плагина"
98
+ },
99
+ "store": "Магазин плагинов"
100
+ },
87
101
  "settingAgent": {
88
102
  "avatar": {
89
103
  "title": "Аватар"
@@ -293,5 +307,17 @@
293
307
  "common": "Общие настройки",
294
308
  "llm": "Пользовательский API GPT",
295
309
  "tts": "Сервис речи"
310
+ },
311
+ "tools": {
312
+ "builtins": {
313
+ "groupName": "Встроенные"
314
+ },
315
+ "plugins": {
316
+ "enabled": "Включено {{num}}",
317
+ "groupName": "Плагины",
318
+ "noEnabled": "Нет включенных плагинов",
319
+ "store": "Магазин плагинов"
320
+ },
321
+ "title": "Расширенные инструменты"
296
322
  }
297
323
  }
@@ -82,6 +82,12 @@
82
82
  "update": "更新",
83
83
  "updateSuccess": "插件设置更新成功"
84
84
  },
85
+ "error": {
86
+ "fetchError": "请求失败",
87
+ "installError": "插件 {{name}} 安装失败",
88
+ "manifestInvalid": "描述文件格式不正确",
89
+ "noManifest": "描述文件不存在"
90
+ },
85
91
  "list": {
86
92
  "item": {
87
93
  "deprecated.title": "已删除",
@@ -105,5 +111,18 @@
105
111
  },
106
112
  "modalDesc": "配置插件市场的地址后,可以使用自定义的插件市场",
107
113
  "title": "设置插件市场"
114
+ },
115
+ "store": {
116
+ "empty": "暂无已安装插件",
117
+ "install": "安装",
118
+ "installAllPlugins": "安装全部",
119
+ "networkError": "获取插件商店失败,请检测网络连接后重试",
120
+ "releasedAt": "发布于 {{createdAt}}",
121
+ "tabs": {
122
+ "all": "全部",
123
+ "installed": "已安装"
124
+ },
125
+ "title": "插件商店",
126
+ "uninstall": "卸载"
108
127
  }
109
128
  }
@@ -84,6 +84,20 @@
84
84
  },
85
85
  "waitingForMore": "更多模型正在 <1>计划接入</1> 中,敬请期待 ✨"
86
86
  },
87
+ "plugin": {
88
+ "addTooltip": "添加自定义插件",
89
+ "clearDeprecated": "移除无效插件",
90
+ "empty": "暂无已安装插件,欢迎前往 <1>插件商店</1> 探索",
91
+ "installStatus": {
92
+ "deprecated": "已卸载"
93
+ },
94
+ "settings": {
95
+ "hint": "请根据描述填写以下配置",
96
+ "title": "{{id}} 插件配置",
97
+ "tooltip": "插件配置"
98
+ },
99
+ "store": "插件商店"
100
+ },
87
101
  "settingAgent": {
88
102
  "avatar": {
89
103
  "title": "头像"
@@ -187,11 +201,6 @@
187
201
  }
188
202
  },
189
203
  "settingPlugin": {
190
- "add": "添加",
191
- "addTooltip": "添加自定义插件",
192
- "clearDeprecated": "移除无效插件",
193
- "config": "{{id}} 插件配置",
194
- "settings": "配置插件市场",
195
204
  "title": "插件列表"
196
205
  },
197
206
  "settingSystem": {
@@ -276,5 +285,17 @@
276
285
  "common": "通用设置",
277
286
  "llm": "语言模型",
278
287
  "tts": "语音服务"
288
+ },
289
+ "tools": {
290
+ "builtins": {
291
+ "groupName": "内置"
292
+ },
293
+ "plugins": {
294
+ "enabled": "已启用 {{num}}",
295
+ "groupName": "插件",
296
+ "noEnabled": "暂无启用插件",
297
+ "store": "插件商店"
298
+ },
299
+ "title": "扩展工具"
279
300
  }
280
301
  }
@@ -83,6 +83,12 @@
83
83
  "update": "更新",
84
84
  "updateSuccess": "外掛設定已成功更新"
85
85
  },
86
+ "error": {
87
+ "fetchError": "請求失敗",
88
+ "installError": "插件 {{name}} 安裝失敗",
89
+ "manifestInvalid": "描述檔格式無效",
90
+ "noManifest": "描述檔不存在"
91
+ },
86
92
  "list": {
87
93
  "item": {
88
94
  "local.config": "設定",
@@ -125,5 +131,18 @@
125
131
  },
126
132
  "modalDesc": "設定外掛市集的網址後,您可以使用自訂的外掛市集",
127
133
  "title": "設定外掛市集"
134
+ },
135
+ "store": {
136
+ "empty": "暫無已安裝插件",
137
+ "install": "安裝",
138
+ "installAllPlugins": "安裝全部",
139
+ "networkError": "獲取插件商店失敗,請檢查網路連線後重試",
140
+ "releasedAt": "發佈於 {{createdAt}}",
141
+ "tabs": {
142
+ "all": "全部",
143
+ "installed": "已安裝"
144
+ },
145
+ "title": "插件商店",
146
+ "uninstall": "解除安裝"
128
147
  }
129
148
  }