@lobehub/chat 1.70.10 → 1.71.0

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 (61) hide show
  1. package/.github/ISSUE_TEMPLATE/1_bug_report.yml +1 -0
  2. package/.github/ISSUE_TEMPLATE/2_feature_request.yml +1 -0
  3. package/.github/ISSUE_TEMPLATE/2_feature_request_cn.yml +1 -0
  4. package/.github/workflows/sync-database-schema.yml +25 -0
  5. package/CHANGELOG.md +42 -0
  6. package/README.md +1 -1
  7. package/README.zh-CN.md +1 -1
  8. package/changelog/v1.json +14 -0
  9. package/docs/developer/database-schema.dbml +569 -0
  10. package/locales/ar/models.json +3 -0
  11. package/locales/bg-BG/models.json +3 -0
  12. package/locales/de-DE/models.json +3 -0
  13. package/locales/en-US/models.json +3 -0
  14. package/locales/es-ES/models.json +3 -0
  15. package/locales/fa-IR/models.json +3 -0
  16. package/locales/fr-FR/models.json +3 -0
  17. package/locales/it-IT/models.json +3 -0
  18. package/locales/ja-JP/models.json +3 -0
  19. package/locales/ko-KR/models.json +3 -0
  20. package/locales/nl-NL/models.json +3 -0
  21. package/locales/pl-PL/models.json +3 -0
  22. package/locales/pt-BR/models.json +3 -0
  23. package/locales/ru-RU/models.json +3 -0
  24. package/locales/tr-TR/models.json +3 -0
  25. package/locales/vi-VN/models.json +3 -0
  26. package/locales/zh-CN/models.json +3 -0
  27. package/locales/zh-TW/models.json +3 -0
  28. package/package.json +6 -2
  29. package/scripts/dbmlWorkflow/index.ts +11 -0
  30. package/src/config/aiModels/google.ts +17 -0
  31. package/src/database/client/migrations.json +10 -0
  32. package/src/database/migrations/0016_add_message_index.sql +3 -0
  33. package/src/database/migrations/meta/0016_snapshot.json +4018 -0
  34. package/src/database/migrations/meta/_journal.json +7 -0
  35. package/src/database/schemas/message.ts +3 -0
  36. package/src/database/server/models/message.ts +20 -9
  37. package/src/database/server/models/user.test.ts +58 -0
  38. package/src/features/AlertBanner/CloudBanner.tsx +1 -1
  39. package/src/features/Conversation/Messages/Assistant/index.tsx +4 -1
  40. package/src/features/Conversation/Messages/User/index.tsx +4 -4
  41. package/src/libs/agent-runtime/google/index.ts +8 -2
  42. package/src/libs/agent-runtime/utils/streams/google-ai.test.ts +99 -0
  43. package/src/libs/agent-runtime/utils/streams/google-ai.ts +69 -23
  44. package/src/libs/agent-runtime/utils/streams/protocol.ts +2 -0
  45. package/src/services/chat.ts +33 -15
  46. package/src/services/file/client.ts +3 -1
  47. package/src/services/message/server.ts +2 -2
  48. package/src/services/message/type.ts +2 -2
  49. package/src/services/upload.ts +82 -1
  50. package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +44 -4
  51. package/src/store/chat/slices/message/action.ts +3 -0
  52. package/src/store/file/slices/upload/action.ts +36 -13
  53. package/src/store/file/store.ts +2 -0
  54. package/src/tools/web-browsing/Render/PageContent/index.tsx +2 -2
  55. package/src/tools/web-browsing/Render/Search/SearchResult/SearchResultItem.tsx +1 -1
  56. package/src/types/files/upload.ts +7 -0
  57. package/src/types/message/base.ts +22 -1
  58. package/src/types/message/chat.ts +1 -6
  59. package/src/types/message/image.ts +11 -0
  60. package/src/types/message/index.ts +1 -0
  61. package/src/utils/fetch/fetchSSE.ts +24 -1
@@ -2,6 +2,7 @@ name: '🐛 Bug Report'
2
2
  description: 'Report an bug'
3
3
  title: '[Bug] '
4
4
  labels: ['🐛 Bug']
5
+ type: Bug
5
6
  body:
6
7
  - type: dropdown
7
8
  attributes:
@@ -2,6 +2,7 @@ name: '🌠 Feature Request'
2
2
  description: 'Suggest an idea'
3
3
  title: '[Request] '
4
4
  labels: ['🌠 Feature Request']
5
+ type: Feature
5
6
  body:
6
7
  - type: textarea
7
8
  attributes:
@@ -2,6 +2,7 @@ name: '🌠 功能需求'
2
2
  description: '提出需求或建议'
3
3
  title: '[Request] '
4
4
  labels: ['🌠 Feature Request']
5
+ type: Feature
5
6
  body:
6
7
  - type: textarea
7
8
  attributes:
@@ -0,0 +1,25 @@
1
+ name: Database Schema Visualization CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - 'docs/developer/database-schema.dbml'
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Install dbdocs
17
+ run: sudo npm install -g dbdocs
18
+
19
+ - name: Check dbdocs
20
+ run: dbdocs
21
+
22
+ - name: sync database schema to dbdocs
23
+ env:
24
+ DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
25
+ run: npm run db:visualize
package/CHANGELOG.md CHANGED
@@ -2,6 +2,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 1.71.0](https://github.com/lobehub/lobe-chat/compare/v1.70.11...v1.71.0)
6
+
7
+ <sup>Released on **2025-03-14**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Support gemini image output in chat.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Support gemini image output in chat, closes [#6931](https://github.com/lobehub/lobe-chat/issues/6931) ([d4c0d1f](https://github.com/lobehub/lobe-chat/commit/d4c0d1f))
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 1.70.11](https://github.com/lobehub/lobe-chat/compare/v1.70.10...v1.70.11)
31
+
32
+ <sup>Released on **2025-03-13**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.70.10](https://github.com/lobehub/lobe-chat/compare/v1.70.9...v1.70.10)
6
48
 
7
49
  <sup>Released on **2025-03-12**</sup>
package/README.md CHANGED
@@ -364,7 +364,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
364
364
 
365
365
  | Recent Submits | Description |
366
366
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
367
- | [审稿回复专家](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</sup> | 擅长高质量文献检索与分析的学术研究助手<br/>`学术研究` `文献检索` `数据分析` `信息提取` `咨询` |
367
+ | [学术论文综述专家](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</sup> | 擅长高质量文献检索与分析的学术研究助手<br/>`学术研究` `文献检索` `数据分析` `信息提取` `咨询` |
368
368
  | [Cron Expression Assistant](https://lobechat.com/discover/assistant/crontab-generate)<br/><sup>By **[edgesider](https://github.com/edgesider)** on **2025-02-17**</sup> | Crontab Expression Generator<br/>`crontab` `time-expression` `trigger-time` `generator` `technical-assistance` |
369
369
  | [Xiao Zhi French Translation Assistant](https://lobechat.com/discover/assistant/xiao-zhi-french-translation-asst-v-1)<br/><sup>By **[WeR-Best](https://github.com/WeR-Best)** on **2025-02-10**</sup> | A friendly, professional, and empathetic AI assistant for French translation<br/>`ai-assistant` `french-translation` `cross-cultural-communication` `creativity` |
370
370
  | [Investment Assistant](https://lobechat.com/discover/assistant/graham-investmentassi)<br/><sup>By **[farsightlin](https://github.com/farsightlin)** on **2025-02-06**</sup> | Helps users calculate the data needed for valuation<br/>`investment` `valuation` `financial-analysis` `calculator` |
package/README.zh-CN.md CHANGED
@@ -353,7 +353,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
353
353
 
354
354
  | 最近新增 | 描述 |
355
355
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
356
- | [审稿回复专家](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</sup> | 擅长高质量文献检索与分析的学术研究助手<br/>`学术研究` `文献检索` `数据分析` `信息提取` `咨询` |
356
+ | [学术论文综述专家](https://lobechat.com/discover/assistant/academic-paper-overview)<br/><sup>By **[arvinxx](https://github.com/arvinxx)** on **2025-03-11**</sup> | 擅长高质量文献检索与分析的学术研究助手<br/>`学术研究` `文献检索` `数据分析` `信息提取` `咨询` |
357
357
  | [Cron 表达式助手](https://lobechat.com/discover/assistant/crontab-generate)<br/><sup>By **[edgesider](https://github.com/edgesider)** on **2025-02-17**</sup> | Crontab 表达式生成<br/>`crontab` `时间表达` `触发时间` `生成器` `技术辅助` |
358
358
  | [小智法语翻译助手](https://lobechat.com/discover/assistant/xiao-zhi-french-translation-asst-v-1)<br/><sup>By **[WeR-Best](https://github.com/WeR-Best)** on **2025-02-10**</sup> | 友好、专业、富有同理心的法语翻译 AI 助手<br/>`ai助手` `法语翻译` `跨文化交流` `创造力` |
359
359
  | [投资小助手](https://lobechat.com/discover/assistant/graham-investmentassi)<br/><sup>By **[farsightlin](https://github.com/farsightlin)** on **2025-02-06**</sup> | 帮助用户计算估值所需的一些数据<br/>`投资` `估值` `财务分析` `计算器` |
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "features": [
5
+ "Support gemini image output in chat."
6
+ ]
7
+ },
8
+ "date": "2025-03-14",
9
+ "version": "1.71.0"
10
+ },
11
+ {
12
+ "children": {},
13
+ "date": "2025-03-13",
14
+ "version": "1.70.11"
15
+ },
2
16
  {
3
17
  "children": {
4
18
  "fixes": [