@lobehub/chat 0.161.0 → 0.161.2
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.
- package/CHANGELOG.md +50 -0
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/locales/ar/setting.json +8 -0
- package/locales/bg-BG/setting.json +8 -0
- package/locales/de-DE/setting.json +8 -0
- package/locales/en-US/setting.json +8 -0
- package/locales/es-ES/setting.json +8 -0
- package/locales/fr-FR/setting.json +8 -0
- package/locales/it-IT/setting.json +8 -0
- package/locales/ja-JP/setting.json +8 -0
- package/locales/ko-KR/setting.json +8 -0
- package/locales/nl-NL/setting.json +8 -0
- package/locales/pl-PL/setting.json +8 -1
- package/locales/pt-BR/setting.json +8 -0
- package/locales/ru-RU/setting.json +8 -0
- package/locales/tr-TR/setting.json +8 -0
- package/locales/vi-VN/setting.json +8 -0
- package/locales/zh-CN/clerk.json +1 -1
- package/locales/zh-CN/setting.json +8 -0
- package/locales/zh-TW/clerk.json +1 -1
- package/locales/zh-TW/setting.json +8 -0
- package/package.json +23 -23
- package/src/app/(main)/settings/_layout/Desktop/Header.tsx +58 -25
- package/src/app/(main)/settings/_layout/Desktop/index.tsx +18 -1
- package/src/app/@modal/(.)settings/modal/layout.tsx +13 -1
- package/src/app/@modal/_layout/SettingModalLayout.tsx +45 -41
- package/src/app/@modal/chat/(.)settings/modal/features/CategoryContent.tsx +1 -1
- package/src/app/@modal/chat/(.)settings/modal/features/useCategory.tsx +6 -6
- package/src/app/@modal/chat/(.)settings/modal/layout.tsx +4 -0
- package/src/app/@modal/layout.tsx +1 -0
- package/src/app/api/chat/[provider]/route.test.ts +1 -1
- package/src/app/api/chat/agentRuntime.test.ts +4 -4
- package/src/app/api/chat/agentRuntime.ts +17 -17
- package/src/app/api/chat/apiKeyManager.test.ts +1 -0
- package/src/app/api/chat/apiKeyManager.ts +2 -2
- package/src/app/api/config.test.ts +1 -1
- package/src/app/api/config.ts +3 -4
- package/src/app/api/openai/createBizOpenAI/createAzureOpenai.ts +2 -2
- package/src/app/api/openai/createBizOpenAI/createOpenai.ts +2 -2
- package/src/config/__tests__/server.test.ts +5 -5
- package/src/config/llm.ts +217 -0
- package/src/config/server/index.ts +1 -5
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +4 -0
- package/src/libs/agent-runtime/minimax/index.test.ts +0 -1
- package/src/libs/agent-runtime/zhipu/index.test.ts +0 -3
- package/src/locales/default/clerk.ts +1 -1
- package/src/locales/default/setting.ts +8 -0
- package/src/server/globalConfig/index.ts +6 -7
- package/src/server/translation.ts +22 -8
- package/src/config/server/provider.ts +0 -229
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.161.2](https://github.com/lobehub/lobe-chat/compare/v0.161.1...v0.161.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-22**</sup>
|
|
8
|
+
|
|
9
|
+
#### ♻ Code Refactoring
|
|
10
|
+
|
|
11
|
+
- **misc**: Refactor the llm env.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Code refactoring
|
|
19
|
+
|
|
20
|
+
- **misc**: Refactor the llm env, closes [#2592](https://github.com/lobehub/lobe-chat/issues/2592) ([5eb225a](https://github.com/lobehub/lobe-chat/commit/5eb225a))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.161.1](https://github.com/lobehub/lobe-chat/compare/v0.161.0...v0.161.1)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-05-22**</sup>
|
|
33
|
+
|
|
34
|
+
#### 💄 Styles
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix setting modal style problem.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Styles
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix setting modal style problem, closes [#2599](https://github.com/lobehub/lobe-chat/issues/2599) ([1a3f8f3](https://github.com/lobehub/lobe-chat/commit/1a3f8f3))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
## [Version 0.161.0](https://github.com/lobehub/lobe-chat/compare/v0.160.8...v0.161.0)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-05-21**</sup>
|
package/README.md
CHANGED
|
@@ -262,14 +262,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
262
262
|
|
|
263
263
|
<!-- AGENT LIST -->
|
|
264
264
|
|
|
265
|
-
| Recent Submits
|
|
266
|
-
|
|
|
267
|
-
| [
|
|
268
|
-
| [
|
|
269
|
-
| [
|
|
270
|
-
| [
|
|
271
|
-
|
|
272
|
-
> 📊 Total agents: [<kbd>**
|
|
265
|
+
| Recent Submits | Description |
|
|
266
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
267
|
+
| [Bahasa/English Translator](https://chat-preview.lobehub.com/market?agent=bahasa-translation)<br/><sup>By **[xenstar](https://github.com/xenstar)** on **2024-05-22**</sup> | Translates text into Bahasa or English, as needed<br/>`english` `translation` `writing` `bahasa` |
|
|
268
|
+
| [Zen Master](https://chat-preview.lobehub.com/market?agent=buddhism-master)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | Well-versed in classics, adept at using Buddhism to guide life<br/>`buddhist-studies` `zen-buddhism` `buddhist-scripture-interpretation` `wisdom-q-a` |
|
|
269
|
+
| [Chinese Historian](https://chat-preview.lobehub.com/market?agent=chinese-historian)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | Specialized in Chinese historical research, adept at applying ancient wisdom to analyze modern issues.<br/>`historical-research` `chinese-history` |
|
|
270
|
+
| [Confucian Scholar](https://chat-preview.lobehub.com/market?agent=confucian-sage)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | A scholar who is proficient in Confucian classics and emphasizes the promotion of righteousness and morality.<br/>`confucian-scholar` `promoter-of-righteousness` |
|
|
271
|
+
|
|
272
|
+
> 📊 Total agents: [<kbd>**269**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
273
273
|
|
|
274
274
|
<!-- AGENT LIST -->
|
|
275
275
|
|
package/README.zh-CN.md
CHANGED
|
@@ -250,14 +250,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
250
250
|
|
|
251
251
|
<!-- AGENT LIST -->
|
|
252
252
|
|
|
253
|
-
| 最近新增
|
|
254
|
-
|
|
|
255
|
-
| [
|
|
256
|
-
| [
|
|
257
|
-
| [
|
|
258
|
-
| [
|
|
259
|
-
|
|
260
|
-
> 📊 Total agents: [<kbd>**
|
|
253
|
+
| 最近新增 | 助手说明 |
|
|
254
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
255
|
+
| [Bahasa/English Translator](https://chat-preview.lobehub.com/market?agent=bahasa-translation)<br/><sup>By **[xenstar](https://github.com/xenstar)** on **2024-05-22**</sup> | 根据需要将文本翻译成马来语或英语<br/>`英语` `翻译` `写作` `马来语` |
|
|
256
|
+
| [禅定法师](https://chat-preview.lobehub.com/market?agent=buddhism-master)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | 熟读经典,善于运用佛法来指导人生<br/>`佛法佛法研究` `禅宗` `佛经解读` `智慧问答` |
|
|
257
|
+
| [中国历史学者](https://chat-preview.lobehub.com/market?agent=chinese-historian)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | 专精于中国历史研究,擅长将古代智慧应用于现代问题分析<br/>`历史研究` `中国历史` |
|
|
258
|
+
| [儒家学者](https://chat-preview.lobehub.com/market?agent=confucian-sage)<br/><sup>By **[epochaudio](https://github.com/epochaudio)** on **2024-05-22**</sup> | 一名精通儒家经典且注重弘扬道义的学者<br/>`儒家学者` `道义弘扬者` |
|
|
259
|
+
|
|
260
|
+
> 📊 Total agents: [<kbd>**269**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
261
261
|
|
|
262
262
|
<!-- AGENT LIST -->
|
|
263
263
|
|
package/locales/ar/setting.json
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "حول"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "تفضيلات الدردشة",
|
|
7
|
+
"meta": "معلومات المساعد",
|
|
8
|
+
"modal": "إعدادات النموذج",
|
|
9
|
+
"plugin": "إعدادات الإضافة",
|
|
10
|
+
"prompt": "تعيين الشخصية",
|
|
11
|
+
"tts": "خدمة النص إلى كلام"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "من خلال اختيار إرسال بيانات التحليل، يمكنك مساعدتنا في تحسين تجربة مستخدم LobeChat بشكل عام",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Относно"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Предпочитания за чат",
|
|
7
|
+
"meta": "Информация за асистента",
|
|
8
|
+
"modal": "Настройки на модела",
|
|
9
|
+
"plugin": "Настройки на добавката",
|
|
10
|
+
"prompt": "Настройки на ролята",
|
|
11
|
+
"tts": "Гласова услуга"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Като изберете да изпращате телеметрични данни, можете да ни помогнете да подобрим цялостното потребителско изживяване на LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Über"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Chat-Präferenz",
|
|
7
|
+
"meta": "Assistenteninformation",
|
|
8
|
+
"modal": "Modell-Einstellungen",
|
|
9
|
+
"plugin": "Plugin-Einstellungen",
|
|
10
|
+
"prompt": "Rollenkonfiguration",
|
|
11
|
+
"tts": "Sprachdienst"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Durch das Senden von Telemetriedaten können Sie uns dabei helfen, die Gesamtnutzererfahrung von LobeChat zu verbessern",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "About"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Chat Preferences",
|
|
7
|
+
"meta": "Assistant Info",
|
|
8
|
+
"modal": "Model Settings",
|
|
9
|
+
"plugin": "Plugin Settings",
|
|
10
|
+
"prompt": "Role Configuration",
|
|
11
|
+
"tts": "Voice Service"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "By opting to send telemetry data, you can help us improve the overall user experience of LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Acerca de"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Preferencias de chat",
|
|
7
|
+
"meta": "Información del asistente",
|
|
8
|
+
"modal": "Configuración del modelo",
|
|
9
|
+
"plugin": "Configuración de complementos",
|
|
10
|
+
"prompt": "Configuración de roles",
|
|
11
|
+
"tts": "Servicio de voz"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Al seleccionar el envío de datos de telemetría, nos ayudas a mejorar la experiencia general del usuario de LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "À propos"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Préférences de discussion",
|
|
7
|
+
"meta": "Informations de l'assistant",
|
|
8
|
+
"modal": "Paramètres du modèle",
|
|
9
|
+
"plugin": "Paramètres du plugin",
|
|
10
|
+
"prompt": "Configuration du rôle",
|
|
11
|
+
"tts": "Service vocal"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "En choisissant d'envoyer des données de télémétrie, vous pouvez nous aider à améliorer l'expérience utilisateur globale de LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Informazioni"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Preferenze di chat",
|
|
7
|
+
"meta": "Informazioni assistente",
|
|
8
|
+
"modal": "Impostazioni modello",
|
|
9
|
+
"plugin": "Impostazioni plugin",
|
|
10
|
+
"prompt": "Impostazioni ruolo",
|
|
11
|
+
"tts": "Servizio vocale"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Attivando l'invio dei dati di telemetria, ci aiuti a migliorare complessivamente l'esperienza utente di LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "について"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "チャット設定",
|
|
7
|
+
"meta": "メタ情報",
|
|
8
|
+
"modal": "モーダル設定",
|
|
9
|
+
"plugin": "プラグイン設定",
|
|
10
|
+
"prompt": "プロンプト設定",
|
|
11
|
+
"tts": "音声サービス"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "匿名の使用データを送信することで、LobeChat の全体的なユーザーエクスペリエンスの向上にご協力いただけます",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "소개"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "채팅 환경",
|
|
7
|
+
"meta": "도우미 정보",
|
|
8
|
+
"modal": "모델 설정",
|
|
9
|
+
"plugin": "플러그인 설정",
|
|
10
|
+
"prompt": "역할 설정",
|
|
11
|
+
"tts": "음성 서비스"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "익명 사용 데이터를 보내는 것으로 LobeChat의 전반적인 사용자 경험을 개선하는 데 도움을 줄 수 있습니다",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Over"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Chatvoorkeur",
|
|
7
|
+
"meta": "Assistentinformatie",
|
|
8
|
+
"modal": "Modelinstellingen",
|
|
9
|
+
"plugin": "Plugin-instellingen",
|
|
10
|
+
"prompt": "Rolinstelling",
|
|
11
|
+
"tts": "Tekst-naar-spraakdienst"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Door te kiezen om telemetrische gegevens te verzenden, kun je ons helpen om de algehele gebruikerservaring van LobeChat te verbeteren",
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"": {},
|
|
3
2
|
"about": {
|
|
4
3
|
"title": "O nas"
|
|
5
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Preferencje czatu",
|
|
7
|
+
"meta": "Informacje o asystencie",
|
|
8
|
+
"modal": "Ustawienia modalne",
|
|
9
|
+
"plugin": "Ustawienia wtyczki",
|
|
10
|
+
"prompt": "Ustawienia roli",
|
|
11
|
+
"tts": "Usługi głosowe"
|
|
12
|
+
},
|
|
6
13
|
"analytics": {
|
|
7
14
|
"telemetry": {
|
|
8
15
|
"desc": "Poprzez wybór wysyłania danych telemetrycznych możesz pomóc nam poprawić ogólny użytkowy interfejs LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Sobre"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Preferências de bate-papo",
|
|
7
|
+
"meta": "Informações do assistente",
|
|
8
|
+
"modal": "Configurações do modelo",
|
|
9
|
+
"plugin": "Configurações do plug-in",
|
|
10
|
+
"prompt": "Configuração de personagem",
|
|
11
|
+
"tts": "Serviço de voz"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Ao optar por enviar dados de telemetria, você pode nos ajudar a melhorar a experiência do usuário do LobeChat como um todo",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "О нас"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Предпочтения чата",
|
|
7
|
+
"meta": "Информация об ассистенте",
|
|
8
|
+
"modal": "Настройки модели",
|
|
9
|
+
"plugin": "Настройки плагина",
|
|
10
|
+
"prompt": "Настройки роли",
|
|
11
|
+
"tts": "Сервис озвучивания текста"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Выбрав отправку телеметрических данных, вы можете помочь нам улучшить общий пользовательский опыт LobeChat",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Hakkında"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Sohbet Tercihi",
|
|
7
|
+
"meta": "Asistan Bilgisi",
|
|
8
|
+
"modal": "Model Ayarları",
|
|
9
|
+
"plugin": "Eklenti Ayarları",
|
|
10
|
+
"prompt": "Karakter Ayarları",
|
|
11
|
+
"tts": "Metin Okuma Hizmeti"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Anonim kullanım verilerini göndererek LobeChat'in genel kullanıcı deneyimini iyileştirmemize yardımcı olabilirsiniz",
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "Về chúng tôi"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "Tùy chọn Trò chuyện",
|
|
7
|
+
"meta": "Thông tin Trợ lý",
|
|
8
|
+
"modal": "Cài đặt Mô hình",
|
|
9
|
+
"plugin": "Cài đặt Plugin",
|
|
10
|
+
"prompt": "Thiết lập Nhân vật",
|
|
11
|
+
"tts": "Dịch vụ Giọng nói"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "Bằng cách chọn gửi dữ liệu telemetri, bạn có thể giúp chúng tôi cải thiện trải nghiệm người dùng toàn diện của LobeChat",
|
package/locales/zh-CN/clerk.json
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "关于"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "聊天偏好",
|
|
7
|
+
"meta": "助手信息",
|
|
8
|
+
"modal": "模型设置",
|
|
9
|
+
"plugin": "插件设置",
|
|
10
|
+
"prompt": "角色设定",
|
|
11
|
+
"tts": "语音服务"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "通过选择发送遥测数据,你可以帮助我们改善 LobeChat 整体用户体验",
|
package/locales/zh-TW/clerk.json
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
"about": {
|
|
3
3
|
"title": "關於"
|
|
4
4
|
},
|
|
5
|
+
"agentTab": {
|
|
6
|
+
"chat": "聊天偏好",
|
|
7
|
+
"meta": "助手資訊",
|
|
8
|
+
"modal": "模型設定",
|
|
9
|
+
"plugin": "外掛程式設定",
|
|
10
|
+
"prompt": "角色設定",
|
|
11
|
+
"tts": "語音服務"
|
|
12
|
+
},
|
|
5
13
|
"analytics": {
|
|
6
14
|
"telemetry": {
|
|
7
15
|
"desc": "通過選擇發送遙測數據,你可以幫助我們改善 LobeChat 整體用戶體驗",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.161.
|
|
3
|
+
"version": "0.161.2",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -84,24 +84,24 @@
|
|
|
84
84
|
"@ant-design/icons": "^5.3.7",
|
|
85
85
|
"@anthropic-ai/sdk": "^0.20.9",
|
|
86
86
|
"@auth/core": "0.28.0",
|
|
87
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
87
|
+
"@aws-sdk/client-bedrock-runtime": "^3.577.0",
|
|
88
88
|
"@aws-sdk/client-s3": "^3.577.0",
|
|
89
89
|
"@aws-sdk/s3-request-presigner": "^3.577.0",
|
|
90
90
|
"@azure/openai": "1.0.0-beta.12",
|
|
91
91
|
"@cfworker/json-schema": "^1.12.8",
|
|
92
92
|
"@clerk/localizations": "2.0.0",
|
|
93
|
-
"@clerk/nextjs": "^5.0.
|
|
94
|
-
"@clerk/themes": "^2.1.
|
|
95
|
-
"@google/generative-ai": "^0.11.
|
|
93
|
+
"@clerk/nextjs": "^5.0.12",
|
|
94
|
+
"@clerk/themes": "^2.1.6",
|
|
95
|
+
"@google/generative-ai": "^0.11.3",
|
|
96
96
|
"@icons-pack/react-simple-icons": "^9.5.0",
|
|
97
97
|
"@lobehub/chat-plugin-sdk": "latest",
|
|
98
98
|
"@lobehub/chat-plugins-gateway": "latest",
|
|
99
|
-
"@lobehub/icons": "^1.
|
|
99
|
+
"@lobehub/icons": "^1.22.0",
|
|
100
100
|
"@lobehub/tts": "latest",
|
|
101
|
-
"@lobehub/ui": "^1.
|
|
101
|
+
"@lobehub/ui": "^1.139.0",
|
|
102
102
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
103
103
|
"@next/third-parties": "^14.2.3",
|
|
104
|
-
"@sentry/nextjs": "^7.
|
|
104
|
+
"@sentry/nextjs": "^7.116.0",
|
|
105
105
|
"@t3-oss/env-nextjs": "^0.10.1",
|
|
106
106
|
"@trpc/client": "next",
|
|
107
107
|
"@trpc/next": "next",
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
"diff": "^5.2.0",
|
|
121
121
|
"fast-deep-equal": "^3.1.3",
|
|
122
122
|
"gpt-tokenizer": "^2.1.2",
|
|
123
|
-
"i18next": "^23.11.
|
|
123
|
+
"i18next": "^23.11.5",
|
|
124
124
|
"i18next-browser-languagedetector": "^7.2.1",
|
|
125
125
|
"i18next-resources-to-backend": "^1.2.1",
|
|
126
126
|
"idb-keyval": "^6.2.1",
|
|
127
127
|
"immer": "^10.1.1",
|
|
128
128
|
"ip": "^2.0.1",
|
|
129
129
|
"jose": "^5.3.0",
|
|
130
|
-
"langfuse": "^3.
|
|
131
|
-
"langfuse-core": "^3.
|
|
130
|
+
"langfuse": "^3.11.0",
|
|
131
|
+
"langfuse-core": "^3.11.0",
|
|
132
132
|
"lodash-es": "^4.17.21",
|
|
133
133
|
"lucide-react": "latest",
|
|
134
134
|
"modern-screenshot": "^4.4.39",
|
|
@@ -137,13 +137,13 @@
|
|
|
137
137
|
"next-auth": "5.0.0-beta.15",
|
|
138
138
|
"next-sitemap": "^4.2.3",
|
|
139
139
|
"numeral": "^2.0.6",
|
|
140
|
-
"nuqs": "^1.17.
|
|
140
|
+
"nuqs": "^1.17.4",
|
|
141
141
|
"ollama": "^0.5.1",
|
|
142
|
-
"openai": "^4.
|
|
143
|
-
"pino": "^9.
|
|
142
|
+
"openai": "^4.47.1",
|
|
143
|
+
"pino": "^9.1.0",
|
|
144
144
|
"polished": "^4.3.1",
|
|
145
145
|
"posthog-js": "^1.131.4",
|
|
146
|
-
"pwa-install-handler": "^2.
|
|
146
|
+
"pwa-install-handler": "^2.6.0",
|
|
147
147
|
"query-string": "^9.0.0",
|
|
148
148
|
"random-words": "^2.0.1",
|
|
149
149
|
"react": "^18.3.1",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"remark-html": "^15.0.2",
|
|
160
160
|
"rtl-detect": "^1.1.2",
|
|
161
161
|
"semver": "^7.6.2",
|
|
162
|
-
"sharp": "^0.33.
|
|
162
|
+
"sharp": "^0.33.4",
|
|
163
163
|
"superjson": "^2.2.1",
|
|
164
164
|
"swr": "^2.2.5",
|
|
165
165
|
"systemjs": "^6.15.1",
|
|
@@ -194,9 +194,9 @@
|
|
|
194
194
|
"@types/diff": "^5.2.1",
|
|
195
195
|
"@types/ip": "^1.1.3",
|
|
196
196
|
"@types/json-schema": "^7.0.15",
|
|
197
|
-
"@types/lodash": "^4.17.
|
|
197
|
+
"@types/lodash": "^4.17.4",
|
|
198
198
|
"@types/lodash-es": "^4.17.12",
|
|
199
|
-
"@types/node": "^20.12.
|
|
199
|
+
"@types/node": "^20.12.12",
|
|
200
200
|
"@types/numeral": "^2.0.5",
|
|
201
201
|
"@types/react": "^18.3.2",
|
|
202
202
|
"@types/react-dom": "^18.3.0",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"@types/systemjs": "^6.13.5",
|
|
206
206
|
"@types/ua-parser-js": "^0.7.39",
|
|
207
207
|
"@types/uuid": "^9.0.8",
|
|
208
|
-
"@umijs/lint": "^4.2.
|
|
208
|
+
"@umijs/lint": "^4.2.5",
|
|
209
209
|
"@vitest/coverage-v8": "~1.2.2",
|
|
210
210
|
"ajv-keywords": "^5.1.0",
|
|
211
211
|
"commitlint": "^19.3.0",
|
|
@@ -214,12 +214,12 @@
|
|
|
214
214
|
"eslint": "^8.57.0",
|
|
215
215
|
"eslint-plugin-mdx": "^2.3.4",
|
|
216
216
|
"fake-indexeddb": "^5.0.2",
|
|
217
|
-
"glob": "^10.3.
|
|
217
|
+
"glob": "^10.3.16",
|
|
218
218
|
"gray-matter": "^4.0.3",
|
|
219
|
-
"happy-dom": "^14.
|
|
219
|
+
"happy-dom": "^14.11.0",
|
|
220
220
|
"husky": "^9.0.11",
|
|
221
221
|
"just-diff": "^6.0.2",
|
|
222
|
-
"lint-staged": "^15.2.
|
|
222
|
+
"lint-staged": "^15.2.4",
|
|
223
223
|
"lodash": "^4.17.21",
|
|
224
224
|
"markdown-table": "^3.0.3",
|
|
225
225
|
"node-fetch": "^3.3.2",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"remark-parse": "^10.0.2",
|
|
231
231
|
"semantic-release": "^21.1.2",
|
|
232
232
|
"stylelint": "^15.11.0",
|
|
233
|
-
"tsx": "^4.10.
|
|
233
|
+
"tsx": "^4.10.5",
|
|
234
234
|
"typescript": "^5.4.5",
|
|
235
235
|
"unified": "^11.0.4",
|
|
236
236
|
"unist-util-visit": "^5.0.0",
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { ActionIcon, ChatHeader, ChatHeaderTitle } from '@lobehub/ui';
|
|
4
|
-
import { type DrawerProps
|
|
4
|
+
import { Drawer, type DrawerProps } from 'antd';
|
|
5
5
|
import { createStyles } from 'antd-style';
|
|
6
6
|
import { Menu } from 'lucide-react';
|
|
7
|
-
import {
|
|
7
|
+
import { ReactNode, memo, useState } from 'react';
|
|
8
|
+
import { Flexbox } from 'react-layout-kit';
|
|
9
|
+
|
|
10
|
+
import BrandWatermark from '@/components/BrandWatermark';
|
|
8
11
|
|
|
9
12
|
const useStyles = createStyles(({ token, css }) => ({
|
|
10
13
|
container: css`
|
|
@@ -20,32 +23,62 @@ const useStyles = createStyles(({ token, css }) => ({
|
|
|
20
23
|
`,
|
|
21
24
|
}));
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
interface HeaderProps extends Pick<DrawerProps, 'getContainer'> {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
title: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const Header = memo<HeaderProps>(({ children, getContainer, title }) => {
|
|
32
|
+
const [open, setOpen] = useState(false);
|
|
24
33
|
const { styles, theme } = useStyles();
|
|
25
34
|
|
|
26
35
|
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
<>
|
|
37
|
+
<ChatHeader
|
|
38
|
+
className={styles.container}
|
|
39
|
+
left={
|
|
40
|
+
<ChatHeaderTitle
|
|
41
|
+
title={
|
|
42
|
+
<Flexbox align={'center'} className={styles.title} gap={4} horizontal>
|
|
43
|
+
<ActionIcon
|
|
44
|
+
color={theme.colorText}
|
|
45
|
+
icon={Menu}
|
|
46
|
+
onClick={() => setOpen(true)}
|
|
47
|
+
size={{ blockSize: 32, fontSize: 18 }}
|
|
48
|
+
/>
|
|
49
|
+
{title}
|
|
50
|
+
</Flexbox>
|
|
51
|
+
}
|
|
52
|
+
/>
|
|
53
|
+
}
|
|
54
|
+
/>
|
|
55
|
+
<Drawer
|
|
56
|
+
bodyStyle={{
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
gap: 20,
|
|
60
|
+
justifyContent: 'space-between',
|
|
61
|
+
padding: 16,
|
|
62
|
+
}}
|
|
63
|
+
getContainer={getContainer}
|
|
64
|
+
headerStyle={{ display: 'none' }}
|
|
65
|
+
maskStyle={{ background: 'transparent' }}
|
|
66
|
+
onClick={() => setOpen(false)}
|
|
67
|
+
onClose={() => setOpen(false)}
|
|
68
|
+
open={open}
|
|
69
|
+
placement={'left'}
|
|
70
|
+
rootStyle={{ position: 'absolute' }}
|
|
71
|
+
style={{
|
|
72
|
+
background: theme.colorBgContainer,
|
|
73
|
+
borderRight: `1px solid ${theme.colorSplit}`,
|
|
74
|
+
}}
|
|
75
|
+
width={260}
|
|
76
|
+
zIndex={10}
|
|
77
|
+
>
|
|
78
|
+
{children}
|
|
79
|
+
<BrandWatermark paddingInline={12} />
|
|
80
|
+
</Drawer>
|
|
81
|
+
</>
|
|
49
82
|
);
|
|
50
83
|
});
|
|
51
84
|
|