@lobehub/chat 1.112.5 → 1.113.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 (40) hide show
  1. package/.vscode/settings.json +1 -1
  2. package/CHANGELOG.md +50 -0
  3. package/changelog/v1.json +10 -0
  4. package/package.json +3 -3
  5. package/packages/const/src/image.ts +9 -1
  6. package/packages/model-runtime/src/bfl/createImage.test.ts +846 -0
  7. package/packages/model-runtime/src/bfl/createImage.ts +279 -0
  8. package/packages/model-runtime/src/bfl/index.test.ts +269 -0
  9. package/packages/model-runtime/src/bfl/index.ts +49 -0
  10. package/packages/model-runtime/src/bfl/types.ts +113 -0
  11. package/packages/model-runtime/src/index.ts +1 -0
  12. package/packages/model-runtime/src/qwen/createImage.ts +37 -82
  13. package/packages/model-runtime/src/runtimeMap.ts +2 -0
  14. package/packages/model-runtime/src/utils/asyncifyPolling.test.ts +491 -0
  15. package/packages/model-runtime/src/utils/asyncifyPolling.ts +175 -0
  16. package/src/app/(backend)/api/webhooks/casdoor/route.ts +2 -1
  17. package/src/app/(backend)/api/webhooks/clerk/route.ts +2 -1
  18. package/src/app/(backend)/api/webhooks/logto/route.ts +2 -1
  19. package/src/app/(backend)/webapi/user/avatar/[id]/[image]/route.ts +2 -1
  20. package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/index.tsx +1 -1
  21. package/src/config/aiModels/bfl.ts +145 -0
  22. package/src/config/aiModels/index.ts +3 -0
  23. package/src/config/llm.ts +6 -1
  24. package/src/config/modelProviders/bfl.ts +21 -0
  25. package/src/config/modelProviders/index.ts +3 -0
  26. package/src/database/server/models/ragEval/dataset.ts +9 -7
  27. package/src/database/server/models/ragEval/datasetRecord.ts +12 -10
  28. package/src/database/server/models/ragEval/evaluation.ts +10 -8
  29. package/src/database/server/models/ragEval/evaluationRecord.ts +11 -9
  30. package/src/server/routers/async/file.ts +1 -1
  31. package/src/server/routers/async/ragEval.ts +4 -4
  32. package/src/server/routers/lambda/chunk.ts +1 -1
  33. package/src/server/routers/lambda/ragEval.ts +4 -4
  34. package/src/server/routers/lambda/user.ts +1 -1
  35. package/src/server/services/chunk/index.ts +2 -2
  36. package/src/server/services/nextAuthUser/index.test.ts +1 -1
  37. package/src/server/services/nextAuthUser/index.ts +6 -4
  38. package/src/server/services/user/index.test.ts +3 -1
  39. package/src/server/services/user/index.ts +14 -8
  40. package/src/store/image/slices/generationConfig/hooks.ts +6 -10
@@ -68,7 +68,7 @@
68
68
  "**/src/config/modelProviders/*.ts": "${filename} • provider",
69
69
  "**/src/config/aiModels/*.ts": "${filename} • model",
70
70
  "**/src/config/paramsSchemas/*/*.json": "${dirname(1)}/${filename} • params",
71
- "**/src/libs/model-runtime/*/index.ts": "${dirname} • runtime",
71
+ "**/packages/model-runtime/src/*/index.ts": "${dirname} • runtime",
72
72
 
73
73
  "**/src/server/services/*/index.ts": "${dirname} • server/service",
74
74
  "**/src/server/routers/lambda/*.ts": "${filename} • lambda",
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.113.1](https://github.com/lobehub/lobe-chat/compare/v1.113.0...v1.113.1)
6
+
7
+ <sup>Released on **2025-08-17**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **db**: Desktop local db can't vectorization.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **db**: Desktop local db can't vectorization, closes [#8830](https://github.com/lobehub/lobe-chat/issues/8830) ([a00fd9d](https://github.com/lobehub/lobe-chat/commit/a00fd9d))
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.113.0](https://github.com/lobehub/lobe-chat/compare/v1.112.5...v1.113.0)
31
+
32
+ <sup>Released on **2025-08-17**</sup>
33
+
34
+ #### ✨ Features
35
+
36
+ - **provider**: Add BFL provider support for image generation.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's improved
44
+
45
+ - **provider**: Add BFL provider support for image generation, closes [#8806](https://github.com/lobehub/lobe-chat/issues/8806) ([519e03e](https://github.com/lobehub/lobe-chat/commit/519e03e))
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 1.112.5](https://github.com/lobehub/lobe-chat/compare/v1.112.4...v1.112.5)
6
56
 
7
57
  <sup>Released on **2025-08-17**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,14 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-08-17",
5
+ "version": "1.113.1"
6
+ },
7
+ {
8
+ "children": {},
9
+ "date": "2025-08-17",
10
+ "version": "1.113.0"
11
+ },
2
12
  {
3
13
  "children": {
4
14
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.112.5",
3
+ "version": "1.113.1",
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",
@@ -121,7 +121,7 @@
121
121
  "dependencies": {
122
122
  "@ant-design/icons": "^5.6.1",
123
123
  "@ant-design/pro-components": "^2.8.10",
124
- "@anthropic-ai/sdk": "^0.59.0",
124
+ "@anthropic-ai/sdk": "^0.60.0",
125
125
  "@auth/core": "^0.40.0",
126
126
  "@aws-sdk/client-s3": "^3.862.0",
127
127
  "@aws-sdk/s3-request-presigner": "^3.862.0",
@@ -151,7 +151,7 @@
151
151
  "@lobehub/charts": "^2.0.0",
152
152
  "@lobehub/chat-plugin-sdk": "^1.32.4",
153
153
  "@lobehub/chat-plugins-gateway": "^1.9.0",
154
- "@lobehub/icons": "^2.25.0",
154
+ "@lobehub/icons": "^2.27.1",
155
155
  "@lobehub/market-sdk": "^0.22.7",
156
156
  "@lobehub/tts": "^2.0.1",
157
157
  "@lobehub/ui": "^2.8.3",
@@ -3,4 +3,12 @@
3
3
  */
4
4
  export const DEFAULT_ASPECT_RATIO = '1:1';
5
5
 
6
- export const PRESET_ASPECT_RATIOS = [DEFAULT_ASPECT_RATIO, '16:9', '9:16', '4:3', '3:4'];
6
+ export const PRESET_ASPECT_RATIOS = [
7
+ DEFAULT_ASPECT_RATIO, // '1:1' - 正方形,最常用
8
+ '16:9', // 现代显示器/电视/视频标准
9
+ '9:16', // 手机竖屏/短视频
10
+ '4:3', // 传统显示器/照片
11
+ '3:4', // 传统竖屏照片
12
+ '3:2', // 经典照片比例横屏
13
+ '2:3', // 经典照片比例竖屏
14
+ ];