@lobehub/chat 1.14.10 → 1.14.12
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 +51 -0
- package/README.md +2 -2
- package/README.zh-CN.md +5 -5
- package/locales/ar/file.json +2 -1
- package/locales/bg-BG/file.json +2 -1
- package/locales/de-DE/file.json +2 -1
- package/locales/en-US/file.json +2 -1
- package/locales/es-ES/file.json +2 -1
- package/locales/fr-FR/file.json +2 -1
- package/locales/it-IT/file.json +2 -1
- package/locales/ja-JP/file.json +2 -1
- package/locales/ko-KR/file.json +2 -1
- package/locales/nl-NL/file.json +2 -1
- package/locales/pl-PL/file.json +2 -1
- package/locales/pt-BR/file.json +2 -1
- package/locales/ru-RU/file.json +2 -1
- package/locales/tr-TR/file.json +2 -1
- package/locales/vi-VN/file.json +2 -1
- package/locales/zh-CN/file.json +2 -1
- package/locales/zh-TW/file.json +2 -1
- package/package.json +1 -1
- package/src/components/FileParsingStatus/index.tsx +0 -2
- package/src/config/modelProviders/moonshot.ts +6 -6
- package/src/config/modelProviders/qwen.ts +6 -6
- package/src/config/modelProviders/stepfun.ts +14 -4
- package/src/config/modelProviders/zeroone.ts +30 -29
- package/src/config/modelProviders/zhipu.ts +29 -12
- package/src/const/url.ts +3 -0
- package/src/features/FileViewer/NotSupport/index.tsx +15 -4
- package/src/features/FileViewer/Renderer/MSDoc/index.tsx +65 -0
- package/src/features/FileViewer/Renderer/index.ts +4 -0
- package/src/features/FileViewer/index.tsx +5 -5
- package/src/locales/default/file.ts +2 -1
- /package/src/features/FileViewer/{PDFViewer → Renderer/PDF}/HighlightLayer.tsx +0 -0
- /package/src/features/FileViewer/{PDFViewer → Renderer/PDF}/index.tsx +0 -0
- /package/src/features/FileViewer/{PDFViewer → Renderer/PDF}/style.ts +0 -0
- /package/src/features/FileViewer/{PDFViewer → Renderer/PDF}/useResizeObserver.ts +0 -0
- /package/src/features/FileViewer/{TXTViewer → Renderer/TXT}/index.tsx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.14.12](https://github.com/lobehub/lobe-chat/compare/v1.14.11...v1.14.12)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-08-30**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix ms doc file preview, Update the sorting of each provider model.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix ms doc file preview, closes [#3686](https://github.com/lobehub/lobe-chat/issues/3686) ([2cd78cf](https://github.com/lobehub/lobe-chat/commit/2cd78cf))
|
|
21
|
+
- **misc**: Update the sorting of each provider model, closes [#3688](https://github.com/lobehub/lobe-chat/issues/3688) ([2630bbc](https://github.com/lobehub/lobe-chat/commit/2630bbc))
|
|
22
|
+
|
|
23
|
+
</details>
|
|
24
|
+
|
|
25
|
+
<div align="right">
|
|
26
|
+
|
|
27
|
+
[](#readme-top)
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
### [Version 1.14.11](https://github.com/lobehub/lobe-chat/compare/v1.14.10...v1.14.11)
|
|
32
|
+
|
|
33
|
+
<sup>Released on **2024-08-30**</sup>
|
|
34
|
+
|
|
35
|
+
#### 💄 Styles
|
|
36
|
+
|
|
37
|
+
- **misc**: Update Stepfun models info.
|
|
38
|
+
|
|
39
|
+
<br/>
|
|
40
|
+
|
|
41
|
+
<details>
|
|
42
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
43
|
+
|
|
44
|
+
#### Styles
|
|
45
|
+
|
|
46
|
+
- **misc**: Update Stepfun models info, closes [#3685](https://github.com/lobehub/lobe-chat/issues/3685) ([478b40a](https://github.com/lobehub/lobe-chat/commit/478b40a))
|
|
47
|
+
|
|
48
|
+
</details>
|
|
49
|
+
|
|
50
|
+
<div align="right">
|
|
51
|
+
|
|
52
|
+
[](#readme-top)
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
5
56
|
### [Version 1.14.10](https://github.com/lobehub/lobe-chat/compare/v1.14.9...v1.14.10)
|
|
6
57
|
|
|
7
58
|
<sup>Released on **2024-08-30**</sup>
|
package/README.md
CHANGED
|
@@ -268,6 +268,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
268
268
|
|
|
269
269
|
| Recent Submits | Description |
|
|
270
270
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
271
|
+
| [International Lyricist](https://chat-preview.lobehub.com/market?agent=letrista-internacional)<br/><sup>By **[mnector](https://github.com/mnector)** on **2024-08-29**</sup> | Specialized in writing lyrics for songs in Spanish, English, and French, with a focus on storytelling and the emotions of the provided content.<br/>`lyricism` `translation` `music` |
|
|
271
272
|
| [Backtracking Question Expert](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | Hello! I am an expert in world knowledge, skilled in using backtracking questioning strategies to help you gain a deeper understanding and analysis of issues. Please enter a question, and I will respond to it according to the following process: |
|
|
272
273
|
|
|
273
274
|
1. Provide at least 3 optional backtracking questions that align with the strategy.
|
|
@@ -277,9 +278,8 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
277
278
|
Please tell me what issue you would like to explore?<br/>`backtracking-questions` `thinking-strategies` `problem-analysis` |
|
|
278
279
|
\| [Unreal Engine Master](https://chat-preview.lobehub.com/market?agent=unreal-engine-master)<br/><sup>By **[thedivergentai](https://github.com/thedivergentai)** on **2024-08-27**</sup> | Unreal Game Development Companion<br/>`game-development` `unreal-engine` `software-engineering` |
|
|
279
280
|
\| [TypeScript Solution Architect](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | Expert in TypeScript, Node.js, Vue.js 3, Nuxt.js 3, Express.js, React.js, and modern UI libraries.<br/>`type-script` `java-script` `web-development` `coding-standards` `best-practices` |
|
|
280
|
-
\| [Variable Name Conversion Expert](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | In software development, naming variables is a common yet relatively time-consuming task. This assistant can automatically convert Chinese variable names into English variable names that conform to camelCase, PascalCase, snake_case, kebab-case, and constant naming conventions based on specific naming rules. This not only improves code readability but also alleviates the frustration of variable naming.<br/>`software-development` `variable-naming` `chinese-to-english` `code-standards` `automatic-conversion` |
|
|
281
281
|
|
|
282
|
-
> 📊 Total agents: [<kbd>**
|
|
282
|
+
> 📊 Total agents: [<kbd>**321**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
283
283
|
|
|
284
284
|
<!-- AGENT LIST -->
|
|
285
285
|
|
package/README.zh-CN.md
CHANGED
|
@@ -254,9 +254,10 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
254
254
|
|
|
255
255
|
<!-- AGENT LIST -->
|
|
256
256
|
|
|
257
|
-
| 最近新增
|
|
258
|
-
|
|
|
259
|
-
| [
|
|
257
|
+
| 最近新增 | 助手说明 |
|
|
258
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
259
|
+
| [国际歌词创作人](https://chat-preview.lobehub.com/market?agent=letrista-internacional)<br/><sup>By **[mnector](https://github.com/mnector)** on **2024-08-29**</sup> | 专注于为西班牙语、英语和法语歌曲创作歌词,着重于叙事和所提供内容的情感。<br/>`歌词创作` `翻译` `音乐` |
|
|
260
|
+
| [后退提问专家](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | 你好!我是世界知识的专家,擅长用后退提问策略来帮助你更深入地理解和分析问题。请你输入一个问题,我会根据以下流程回答你的问题: |
|
|
260
261
|
|
|
261
262
|
1. 给出至少 3 个符合策略的可选后退提问。
|
|
262
263
|
2. 分别回答这些后退提问。
|
|
@@ -265,9 +266,8 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
265
266
|
请告诉我你想要探讨的问题是什么?<br/>`后退提问` `思考策略` `问题分析` |
|
|
266
267
|
\| [虚幻引擎大师](https://chat-preview.lobehub.com/market?agent=unreal-engine-master)<br/><sup>By **[thedivergentai](https://github.com/thedivergentai)** on **2024-08-27**</sup> | 虚幻游戏开发助手<br/>`游戏开发` `虚幻引擎` `软件工程` |
|
|
267
268
|
\| [TypeScript 解决方案架构师](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | 精通 TypeScript、Node.js、Vue.js 3、Nuxt.js 3、Express.js、React.js 和现代 UI 库。<br/>`类型脚本` `java-script` `网页开发` `编码标准` `最佳实践` |
|
|
268
|
-
\| [开发变量名转换专家](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | 在软件开发过程中,命名变量是一项常见却相对耗时的任务。本助手能够根据特定的命名规则自动将中文变量名转换为符合小驼峰、大驼峰、下划线、横线以及常量命名规范的英文变量名。这不仅提高了代码的可读性,还解决了变量命名的苦恼。<br/>`软件开发` `变量命名` `中文转英文` `代码规范` `自动转换` |
|
|
269
269
|
|
|
270
|
-
> 📊 Total agents: [<kbd>**
|
|
270
|
+
> 📊 Total agents: [<kbd>**321**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
271
271
|
|
|
272
272
|
<!-- AGENT LIST -->
|
|
273
273
|
|
package/locales/ar/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "الوضع الحالي للنشر لا يدعم إدارة الملفات"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "تحميل الملف",
|
|
60
|
+
"unsupportedFileAndContact": "هذا التنسيق من الملفات غير مدعوم للمعاينة عبر الإنترنت، إذا كان لديك طلب للمعاينة، فلا تتردد في <1>إبلاغنا</1>"
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "بحث عن ملف",
|
|
62
63
|
"tab": {
|
package/locales/bg-BG/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Текущият режим на инсталация не поддържа управление на файлове"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Изтеглете файла",
|
|
60
|
+
"unsupportedFileAndContact": "Този формат на файла не поддържа онлайн преглед. Ако имате нужда от преглед, моля, <1>свържете се с нас</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Търсене на файл",
|
|
62
63
|
"tab": {
|
package/locales/de-DE/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Der aktuelle Bereitstellungsmodus unterstützt keine Dateiverwaltung"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Datei herunterladen",
|
|
60
|
+
"unsupportedFileAndContact": "Dieses Dateiformat wird derzeit nicht für die Online-Vorschau unterstützt. Wenn Sie eine Vorschau wünschen, können Sie uns gerne <1>Feedback geben</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Datei suchen",
|
|
62
63
|
"tab": {
|
package/locales/en-US/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "The current deployment mode does not support file management"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Download File",
|
|
60
|
+
"unsupportedFileAndContact": "This file format is not currently supported for online preview. If you have a request for previewing, feel free to <1>contact us</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Search Files",
|
|
62
63
|
"tab": {
|
package/locales/es-ES/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "El modo de despliegue actual no soporta la gestión de archivos"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Descargar archivo",
|
|
60
|
+
"unsupportedFileAndContact": "Este formato de archivo no es compatible con la vista previa en línea. Si desea solicitar una vista previa, no dude en <1>contactarnos</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Buscar archivo",
|
|
62
63
|
"tab": {
|
package/locales/fr-FR/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Le mode de déploiement actuel ne prend pas en charge la gestion des fichiers"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Télécharger le fichier",
|
|
60
|
+
"unsupportedFileAndContact": "Ce format de fichier n'est pas encore pris en charge pour l'aperçu en ligne. Si vous souhaitez un aperçu, n'hésitez pas à <1>nous contacter</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Rechercher un fichier",
|
|
62
63
|
"tab": {
|
package/locales/it-IT/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "La modalità di distribuzione attuale non supporta la gestione dei file"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Scarica file",
|
|
60
|
+
"unsupportedFileAndContact": "Questo formato di file non è attualmente supportato per la visualizzazione online. Se hai bisogno di una visualizzazione, ti preghiamo di <1>contattarci</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Cerca file",
|
|
62
63
|
"tab": {
|
package/locales/ja-JP/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "現在のデプロイメントモードはファイル管理をサポートしていません"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "ファイルをダウンロード",
|
|
60
|
+
"unsupportedFileAndContact": "このファイル形式はオンラインプレビューをサポートしていません。プレビューのリクエストがある場合は、ぜひ<1>ご連絡ください</1>。"
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "ファイルを検索",
|
|
62
63
|
"tab": {
|
package/locales/ko-KR/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "현재 배포 모드는 파일 관리를 지원하지 않습니다."
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "파일 다운로드",
|
|
60
|
+
"unsupportedFileAndContact": "이 파일 형식은 온라인 미리보기를 지원하지 않습니다. 미리보기가 필요하신 경우, <1>저희에게 피드백을 주시기 바랍니다</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "파일 검색",
|
|
62
63
|
"tab": {
|
package/locales/nl-NL/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "De huidige implementatiemodus ondersteunt geen bestandsbeheer"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Bestand downloaden",
|
|
60
|
+
"unsupportedFileAndContact": "Dit bestandsformaat wordt momenteel niet ondersteund voor online preview. Als u een preview wilt, neem dan gerust <1>contact met ons op</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Zoek bestand",
|
|
62
63
|
"tab": {
|
package/locales/pl-PL/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Obecny tryb wdrożenia nie obsługuje zarządzania plikami"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Pobierz plik",
|
|
60
|
+
"unsupportedFileAndContact": "Ten format pliku nie jest obecnie obsługiwany w podglądzie online. Jeśli chcesz uzyskać podgląd, zachęcamy do <1>skontaktowania się z nami</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Szukaj pliku",
|
|
62
63
|
"tab": {
|
package/locales/pt-BR/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "O modo de implantação atual não suporta gerenciamento de arquivos"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Baixar arquivo",
|
|
60
|
+
"unsupportedFileAndContact": "Este formato de arquivo não é suportado para visualização online. Se você tiver interesse em visualizar, sinta-se à vontade para <1>nos enviar um feedback</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Pesquisar arquivo",
|
|
62
63
|
"tab": {
|
package/locales/ru-RU/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Текущий режим развертывания не поддерживает управление файлами"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Скачать файл",
|
|
60
|
+
"unsupportedFileAndContact": "Этот формат файла в настоящее время не поддерживает онлайн-просмотр. Если у вас есть запрос на просмотр, пожалуйста, <1>сообщите нам</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Поиск файла",
|
|
62
63
|
"tab": {
|
package/locales/tr-TR/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Mevcut dağıtım modu dosya yönetimini desteklemiyor"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Dosyayı İndir",
|
|
60
|
+
"unsupportedFileAndContact": "Bu dosya formatı çevrimiçi önizleme için desteklenmiyor. Önizleme talebiniz varsa, lütfen <1>bize geri bildirimde bulunun</1>."
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Dosya Ara",
|
|
62
63
|
"tab": {
|
package/locales/vi-VN/file.json
CHANGED
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"title": "Chế độ triển khai hiện tại không hỗ trợ quản lý tệp"
|
|
57
57
|
},
|
|
58
58
|
"preview": {
|
|
59
|
-
"
|
|
59
|
+
"downloadFile": "Tải tệp",
|
|
60
|
+
"unsupportedFileAndContact": "Định dạng tệp này hiện không hỗ trợ xem trước trực tuyến. Nếu bạn có yêu cầu xem trước, vui lòng <1>phản hồi cho chúng tôi</1>"
|
|
60
61
|
},
|
|
61
62
|
"searchFilePlaceholder": "Tìm kiếm tệp",
|
|
62
63
|
"tab": {
|
package/locales/zh-CN/file.json
CHANGED
package/locales/zh-TW/file.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.12",
|
|
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",
|
|
@@ -104,8 +104,6 @@ const FileParsingStatus = memo<FileParsingStatusProps>(
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
case AsyncTaskStatus.Success: {
|
|
107
|
-
console.log(embeddingStatus);
|
|
108
|
-
|
|
109
107
|
// if no embedding status, it means that the embedding is not started
|
|
110
108
|
if (!embeddingStatus || preparingEmbedding)
|
|
111
109
|
return (
|
|
@@ -4,11 +4,11 @@ import { ModelProviderCard } from '@/types/llm';
|
|
|
4
4
|
const Moonshot: ModelProviderCard = {
|
|
5
5
|
chatModels: [
|
|
6
6
|
{
|
|
7
|
-
displayName: 'Moonshot V1
|
|
7
|
+
displayName: 'Moonshot V1 128K',
|
|
8
8
|
enabled: true,
|
|
9
9
|
functionCall: true,
|
|
10
|
-
id: 'moonshot-v1-
|
|
11
|
-
tokens:
|
|
10
|
+
id: 'moonshot-v1-128k',
|
|
11
|
+
tokens: 128_000,
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
displayName: 'Moonshot V1 32K',
|
|
@@ -18,11 +18,11 @@ const Moonshot: ModelProviderCard = {
|
|
|
18
18
|
tokens: 32_768,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
displayName: 'Moonshot V1
|
|
21
|
+
displayName: 'Moonshot V1 8K',
|
|
22
22
|
enabled: true,
|
|
23
23
|
functionCall: true,
|
|
24
|
-
id: 'moonshot-v1-
|
|
25
|
-
tokens:
|
|
24
|
+
id: 'moonshot-v1-8k',
|
|
25
|
+
tokens: 8192,
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
28
|
checkModel: 'moonshot-v1-8k',
|
|
@@ -9,7 +9,7 @@ const Qwen: ModelProviderCard = {
|
|
|
9
9
|
enabled: true,
|
|
10
10
|
functionCall: true,
|
|
11
11
|
id: 'qwen-turbo',
|
|
12
|
-
tokens:
|
|
12
|
+
tokens: 8192,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
description: '通义千问超大规模语言模型增强版,支持中文、英文等不同语言输入',
|
|
@@ -17,7 +17,7 @@ const Qwen: ModelProviderCard = {
|
|
|
17
17
|
enabled: true,
|
|
18
18
|
functionCall: true,
|
|
19
19
|
id: 'qwen-plus',
|
|
20
|
-
tokens:
|
|
20
|
+
tokens: 32_768,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
description:
|
|
@@ -26,7 +26,7 @@ const Qwen: ModelProviderCard = {
|
|
|
26
26
|
enabled: true,
|
|
27
27
|
functionCall: true,
|
|
28
28
|
id: 'qwen-max',
|
|
29
|
-
tokens:
|
|
29
|
+
tokens: 8192,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
description:
|
|
@@ -34,13 +34,13 @@ const Qwen: ModelProviderCard = {
|
|
|
34
34
|
displayName: 'Qwen Max LongContext',
|
|
35
35
|
functionCall: true,
|
|
36
36
|
id: 'qwen-max-longcontext',
|
|
37
|
-
tokens:
|
|
37
|
+
tokens: 32_768,
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
description: '通义千问2对外开源的7B规模的模型',
|
|
41
41
|
displayName: 'Qwen2 7B',
|
|
42
42
|
id: 'qwen2-7b-instruct',
|
|
43
|
-
tokens:
|
|
43
|
+
tokens: 128_000,
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
description: '通义千问2对外开源的57B规模14B激活参数的MOE模型',
|
|
@@ -52,7 +52,7 @@ const Qwen: ModelProviderCard = {
|
|
|
52
52
|
description: '通义千问2对外开源的72B规模的模型',
|
|
53
53
|
displayName: 'Qwen2 72B',
|
|
54
54
|
id: 'qwen2-72b-instruct',
|
|
55
|
-
tokens:
|
|
55
|
+
tokens: 128_000,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
description:
|
|
@@ -4,20 +4,28 @@ import { ModelProviderCard } from '@/types/llm';
|
|
|
4
4
|
const Stepfun: ModelProviderCard = {
|
|
5
5
|
chatModels: [
|
|
6
6
|
{
|
|
7
|
-
|
|
7
|
+
id: 'step-2-16k-nightly',
|
|
8
|
+
tokens: 16_384,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
8
11
|
id: 'step-1-256k',
|
|
9
|
-
tokens:
|
|
12
|
+
tokens: 256_000,
|
|
10
13
|
},
|
|
11
14
|
{
|
|
12
15
|
enabled: true,
|
|
13
16
|
id: 'step-1-128k',
|
|
14
|
-
tokens:
|
|
17
|
+
tokens: 128_000,
|
|
15
18
|
},
|
|
16
19
|
{
|
|
17
20
|
enabled: true,
|
|
18
21
|
id: 'step-1-32k',
|
|
19
22
|
tokens: 32_768,
|
|
20
23
|
},
|
|
24
|
+
{
|
|
25
|
+
enabled: true,
|
|
26
|
+
id: 'step-1-8k',
|
|
27
|
+
tokens: 8192,
|
|
28
|
+
},
|
|
21
29
|
{
|
|
22
30
|
enabled: true,
|
|
23
31
|
id: 'step-1v-32k',
|
|
@@ -25,8 +33,10 @@ const Stepfun: ModelProviderCard = {
|
|
|
25
33
|
vision: true,
|
|
26
34
|
},
|
|
27
35
|
{
|
|
28
|
-
|
|
36
|
+
enabled: true,
|
|
37
|
+
id: 'step-1v-8k',
|
|
29
38
|
tokens: 8192,
|
|
39
|
+
vision: true,
|
|
30
40
|
},
|
|
31
41
|
],
|
|
32
42
|
checkModel: 'step-1-8k',
|
|
@@ -11,23 +11,39 @@ const ZeroOne: ModelProviderCard = {
|
|
|
11
11
|
tokens: 32_768,
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
description:
|
|
15
|
-
|
|
14
|
+
description:
|
|
15
|
+
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
|
|
16
|
+
displayName: 'Yi Large FC',
|
|
16
17
|
enabled: true,
|
|
17
|
-
|
|
18
|
+
functionCall: true,
|
|
19
|
+
id: 'yi-large-fc',
|
|
20
|
+
tokens: 32_768,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
description:
|
|
24
|
+
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
|
|
25
|
+
displayName: 'Yi Large RAG',
|
|
26
|
+
enabled: true,
|
|
27
|
+
id: 'yi-large-rag',
|
|
18
28
|
tokens: 16_384,
|
|
19
29
|
},
|
|
20
30
|
{
|
|
21
|
-
description: '
|
|
22
|
-
displayName: 'Yi
|
|
31
|
+
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
|
|
32
|
+
displayName: 'Yi Large Turbo',
|
|
23
33
|
enabled: true,
|
|
24
|
-
id: 'yi-
|
|
34
|
+
id: 'yi-large-turbo',
|
|
35
|
+
tokens: 16_384,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
|
|
39
|
+
displayName: 'Yi Medium',
|
|
40
|
+
enabled: true,
|
|
41
|
+
id: 'yi-medium',
|
|
25
42
|
tokens: 16_384,
|
|
26
|
-
vision: true,
|
|
27
43
|
},
|
|
28
44
|
{
|
|
29
45
|
description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
|
|
30
|
-
displayName: 'Yi 200K',
|
|
46
|
+
displayName: 'Yi Medium 200K',
|
|
31
47
|
enabled: true,
|
|
32
48
|
id: 'yi-medium-200k',
|
|
33
49
|
tokens: 200_000,
|
|
@@ -35,32 +51,17 @@ const ZeroOne: ModelProviderCard = {
|
|
|
35
51
|
{
|
|
36
52
|
description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
|
|
37
53
|
displayName: 'Yi Spark',
|
|
38
|
-
id: 'yi-spark',
|
|
39
|
-
tokens: 16_384,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description:
|
|
43
|
-
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
|
|
44
|
-
displayName: 'Yi Large RAG',
|
|
45
54
|
enabled: true,
|
|
46
|
-
id: 'yi-
|
|
55
|
+
id: 'yi-spark',
|
|
47
56
|
tokens: 16_384,
|
|
48
57
|
},
|
|
49
58
|
{
|
|
50
|
-
description:
|
|
51
|
-
|
|
52
|
-
displayName: 'Yi Large FC',
|
|
53
|
-
enabled: true,
|
|
54
|
-
functionCall: true,
|
|
55
|
-
id: 'yi-large-fc',
|
|
56
|
-
tokens: 32_768,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
|
|
60
|
-
displayName: 'Yi Large Turbo',
|
|
59
|
+
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
|
|
60
|
+
displayName: 'Yi Vision',
|
|
61
61
|
enabled: true,
|
|
62
|
-
id: 'yi-
|
|
62
|
+
id: 'yi-vision',
|
|
63
63
|
tokens: 16_384,
|
|
64
|
+
vision: true,
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
description: '初期版本,推荐使用 yi-large(新版本)',
|
|
@@ -69,7 +70,7 @@ const ZeroOne: ModelProviderCard = {
|
|
|
69
70
|
tokens: 16_384,
|
|
70
71
|
},
|
|
71
72
|
],
|
|
72
|
-
checkModel: 'yi-
|
|
73
|
+
checkModel: 'yi-spark',
|
|
73
74
|
id: 'zeroone',
|
|
74
75
|
name: '01.AI',
|
|
75
76
|
};
|
|
@@ -5,14 +5,6 @@ import { ModelProviderCard } from '@/types/llm';
|
|
|
5
5
|
// ref https://open.bigmodel.cn/modelcenter/square
|
|
6
6
|
const ZhiPu: ModelProviderCard = {
|
|
7
7
|
chatModels: [
|
|
8
|
-
{
|
|
9
|
-
description: '超长输入:专为处理超长文本和记忆型任务设计',
|
|
10
|
-
displayName: 'GLM-4-Long',
|
|
11
|
-
enabled: true,
|
|
12
|
-
functionCall: true,
|
|
13
|
-
id: 'glm-4-long',
|
|
14
|
-
tokens: 1_024_000,
|
|
15
|
-
},
|
|
16
8
|
{
|
|
17
9
|
description:
|
|
18
10
|
'GLM-4-AllTools 是专门为支持智能体和相关任务而进一步优化的模型版本。它能够自主理解用户的意图,规划复杂的指令,并能够调用一个或多个工具(例如网络浏览器、代码解释器和文本生图像)以完成复杂的任务。',
|
|
@@ -23,7 +15,15 @@ const ZhiPu: ModelProviderCard = {
|
|
|
23
15
|
tokens: 128_000,
|
|
24
16
|
},
|
|
25
17
|
{
|
|
26
|
-
description: '
|
|
18
|
+
description: '高智能旗舰:性能全面提升,长文本和复杂任务能力显著增强',
|
|
19
|
+
displayName: 'GLM-4-Plus',
|
|
20
|
+
enabled: true,
|
|
21
|
+
functionCall: true,
|
|
22
|
+
id: 'glm-4-plus',
|
|
23
|
+
tokens: 128_000,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
description: '高智能模型:适用于处理高度复杂和多样化的任务',
|
|
27
27
|
displayName: 'GLM-4-0520',
|
|
28
28
|
enabled: true,
|
|
29
29
|
functionCall: true,
|
|
@@ -31,7 +31,7 @@ const ZhiPu: ModelProviderCard = {
|
|
|
31
31
|
tokens: 128_000,
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
description: '
|
|
34
|
+
description: '旧版旗舰:发布于2024年1月16日,目前已被 GLM-4-0520 取代', // deprecated on 2025-06
|
|
35
35
|
displayName: 'GLM-4',
|
|
36
36
|
functionCall: true,
|
|
37
37
|
id: 'glm-4',
|
|
@@ -52,6 +52,14 @@ const ZhiPu: ModelProviderCard = {
|
|
|
52
52
|
id: 'glm-4-airx',
|
|
53
53
|
tokens: 8192,
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
description: '超长输入:专为处理超长文本和记忆型任务设计',
|
|
57
|
+
displayName: 'GLM-4-Long',
|
|
58
|
+
enabled: true,
|
|
59
|
+
functionCall: true,
|
|
60
|
+
id: 'glm-4-long',
|
|
61
|
+
tokens: 1_024_000,
|
|
62
|
+
},
|
|
55
63
|
{
|
|
56
64
|
description: '适用简单任务,速度最快,价格最实惠的版本',
|
|
57
65
|
displayName: 'GLM-4-Flash',
|
|
@@ -62,11 +70,20 @@ const ZhiPu: ModelProviderCard = {
|
|
|
62
70
|
},
|
|
63
71
|
{
|
|
64
72
|
description:
|
|
65
|
-
'
|
|
73
|
+
'视频和图像理解:具备视频内容和多图片的理解能力',
|
|
74
|
+
displayName: 'GLM-4V-Plus',
|
|
75
|
+
enabled: true,
|
|
76
|
+
id: 'glm-4v-plus',
|
|
77
|
+
tokens: 8192,
|
|
78
|
+
vision: true,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
description:
|
|
82
|
+
'图像理解:具备图像理解能力和推理能力',
|
|
66
83
|
displayName: 'GLM-4V',
|
|
67
84
|
enabled: true,
|
|
68
85
|
id: 'glm-4v',
|
|
69
|
-
tokens:
|
|
86
|
+
tokens: 2048,
|
|
70
87
|
vision: true,
|
|
71
88
|
},
|
|
72
89
|
{
|
package/src/const/url.ts
CHANGED
|
@@ -47,6 +47,9 @@ export const PLUGINS_INDEX_URL = 'https://chat-plugins.lobehub.com';
|
|
|
47
47
|
export const MORE_MODEL_PROVIDER_REQUEST_URL =
|
|
48
48
|
'https://github.com/lobehub/lobe-chat/discussions/1284';
|
|
49
49
|
|
|
50
|
+
export const MORE_FILE_PREVIEW_REQUEST_URL =
|
|
51
|
+
'https://github.com/lobehub/lobe-chat/discussions/3684';
|
|
52
|
+
|
|
50
53
|
export const AGENTS_INDEX_GITHUB = 'https://github.com/lobehub/lobe-chat-agents';
|
|
51
54
|
export const AGENTS_INDEX_GITHUB_ISSUE = urlJoin(AGENTS_INDEX_GITHUB, 'issues/new');
|
|
52
55
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IDocument } from '@cyntler/react-doc-viewer';
|
|
2
|
+
import { FluentEmoji } from '@lobehub/ui';
|
|
2
3
|
import { Button } from 'antd';
|
|
3
4
|
import { createStyles } from 'antd-style';
|
|
5
|
+
import Link from 'next/link';
|
|
4
6
|
import React, { ComponentType, useState } from 'react';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
6
8
|
import { Center, Flexbox } from 'react-layout-kit';
|
|
7
9
|
|
|
10
|
+
import { MORE_FILE_PREVIEW_REQUEST_URL } from '@/const/url';
|
|
8
11
|
import { downloadFile } from '@/utils/client/downloadFile';
|
|
9
12
|
|
|
10
13
|
const useStyles = createStyles(({ css, token }) => ({
|
|
@@ -25,7 +28,7 @@ const NotSupport: ComponentType<{
|
|
|
25
28
|
}> = ({ fileName, document: doc }) => {
|
|
26
29
|
const { styles } = useStyles();
|
|
27
30
|
|
|
28
|
-
const { t } = useTranslation(
|
|
31
|
+
const { t } = useTranslation('file');
|
|
29
32
|
|
|
30
33
|
const [loading, setLoading] = useState(false);
|
|
31
34
|
|
|
@@ -33,7 +36,15 @@ const NotSupport: ComponentType<{
|
|
|
33
36
|
<Flexbox className={styles.page} id="txt-renderer">
|
|
34
37
|
<Center height={'100%'}>
|
|
35
38
|
<Flexbox align={'center'} gap={12}>
|
|
36
|
-
{
|
|
39
|
+
<FluentEmoji emoji={'👀'} size={64} />
|
|
40
|
+
<Flexbox style={{ textAlign: 'center' }}>
|
|
41
|
+
<Trans i18nKey="preview.unsupportedFileAndContact" ns={'file'}>
|
|
42
|
+
此文件格式暂不支持在线预览,如有预览诉求,欢迎
|
|
43
|
+
<Link aria-label={'todo'} href={MORE_FILE_PREVIEW_REQUEST_URL} target="_blank">
|
|
44
|
+
反馈给我们
|
|
45
|
+
</Link>
|
|
46
|
+
</Trans>
|
|
47
|
+
</Flexbox>
|
|
37
48
|
<Button
|
|
38
49
|
loading={loading}
|
|
39
50
|
onClick={async () => {
|
|
@@ -43,7 +54,7 @@ const NotSupport: ComponentType<{
|
|
|
43
54
|
setLoading(false);
|
|
44
55
|
}}
|
|
45
56
|
>
|
|
46
|
-
{t('
|
|
57
|
+
{t('preview.downloadFile')}
|
|
47
58
|
</Button>
|
|
48
59
|
</Flexbox>
|
|
49
60
|
</Center>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { DocRenderer } from '@cyntler/react-doc-viewer';
|
|
2
|
+
import { css, cx } from 'antd-style';
|
|
3
|
+
import { Flexbox } from 'react-layout-kit';
|
|
4
|
+
|
|
5
|
+
const container = css`
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
const content = css`
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset-block: -1px -1px;
|
|
14
|
+
inset-inline-start: -1px;
|
|
15
|
+
|
|
16
|
+
width: calc(100% + 2px);
|
|
17
|
+
height: calc(100% + 2px);
|
|
18
|
+
|
|
19
|
+
border: 0;
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const MSDocRenderer: DocRenderer = ({ mainState: { currentDocument } }) => {
|
|
23
|
+
if (!currentDocument) return null;
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Flexbox className={cx(container)} height={'100%'} id="msdoc-renderer" width={'100%'}>
|
|
27
|
+
<iframe
|
|
28
|
+
className={cx(content)}
|
|
29
|
+
id="msdoc-iframe"
|
|
30
|
+
src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(
|
|
31
|
+
currentDocument.uri,
|
|
32
|
+
)}`}
|
|
33
|
+
title="msdoc-iframe"
|
|
34
|
+
/>
|
|
35
|
+
</Flexbox>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default MSDocRenderer;
|
|
40
|
+
|
|
41
|
+
const MSDocFTMaps = {
|
|
42
|
+
doc: ['doc', 'application/msword'],
|
|
43
|
+
docx: [
|
|
44
|
+
'docx',
|
|
45
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
46
|
+
'application/octet-stream',
|
|
47
|
+
],
|
|
48
|
+
odt: ['odt', 'application/vnd.oasis.opendocument.text'],
|
|
49
|
+
ppt: ['ppt', 'application/vnd.ms-powerpoint'],
|
|
50
|
+
pptx: ['pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation'],
|
|
51
|
+
xls: ['xls', 'application/vnd.ms-excel'],
|
|
52
|
+
xlsx: ['xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
MSDocRenderer.fileTypes = [
|
|
56
|
+
...MSDocFTMaps.odt,
|
|
57
|
+
...MSDocFTMaps.doc,
|
|
58
|
+
...MSDocFTMaps.docx,
|
|
59
|
+
...MSDocFTMaps.xls,
|
|
60
|
+
...MSDocFTMaps.xlsx,
|
|
61
|
+
...MSDocFTMaps.ppt,
|
|
62
|
+
...MSDocFTMaps.pptx,
|
|
63
|
+
];
|
|
64
|
+
MSDocRenderer.weight = 0;
|
|
65
|
+
MSDocRenderer.fileLoader = ({ fileLoaderComplete }) => fileLoaderComplete();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import DocViewer
|
|
3
|
+
import DocViewer from '@cyntler/react-doc-viewer';
|
|
4
4
|
import { createStyles } from 'antd-style';
|
|
5
5
|
import { CSSProperties, memo } from 'react';
|
|
6
6
|
|
|
7
7
|
import { FileListItem } from '@/types/files';
|
|
8
8
|
|
|
9
9
|
import NotSupport from './NotSupport';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { FileViewRenderers } from './Renderer';
|
|
11
|
+
import PDFRenderer from './Renderer/PDF';
|
|
12
12
|
|
|
13
13
|
const useStyles = createStyles(({ css, token }) => ({
|
|
14
14
|
container: css`
|
|
@@ -25,7 +25,7 @@ interface FileViewerProps extends FileListItem {
|
|
|
25
25
|
const FileViewer = memo<FileViewerProps>(({ id, style, fileType, url, name }) => {
|
|
26
26
|
const { styles } = useStyles();
|
|
27
27
|
if (fileType === 'pdf' || name.endsWith('.pdf')) {
|
|
28
|
-
return <
|
|
28
|
+
return <PDFRenderer fileId={id} url={url} />;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return (
|
|
@@ -36,7 +36,7 @@ const FileViewer = memo<FileViewerProps>(({ id, style, fileType, url, name }) =>
|
|
|
36
36
|
noRenderer: { overrideComponent: NotSupport },
|
|
37
37
|
}}
|
|
38
38
|
documents={[{ fileName: name, fileType, uri: url }]}
|
|
39
|
-
pluginRenderers={
|
|
39
|
+
pluginRenderers={FileViewRenderers}
|
|
40
40
|
style={style}
|
|
41
41
|
/>
|
|
42
42
|
);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|