@lobehub/chat 1.112.5 → 1.113.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.
- package/.vscode/settings.json +1 -1
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +5 -0
- package/package.json +2 -2
- package/packages/const/src/image.ts +9 -1
- package/packages/model-runtime/src/bfl/createImage.test.ts +846 -0
- package/packages/model-runtime/src/bfl/createImage.ts +279 -0
- package/packages/model-runtime/src/bfl/index.test.ts +269 -0
- package/packages/model-runtime/src/bfl/index.ts +49 -0
- package/packages/model-runtime/src/bfl/types.ts +113 -0
- package/packages/model-runtime/src/index.ts +1 -0
- package/packages/model-runtime/src/qwen/createImage.ts +37 -82
- package/packages/model-runtime/src/runtimeMap.ts +2 -0
- package/packages/model-runtime/src/utils/asyncifyPolling.test.ts +491 -0
- package/packages/model-runtime/src/utils/asyncifyPolling.ts +175 -0
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/index.tsx +1 -1
- package/src/config/aiModels/bfl.ts +145 -0
- package/src/config/aiModels/index.ts +3 -0
- package/src/config/llm.ts +6 -1
- package/src/config/modelProviders/bfl.ts +21 -0
- package/src/config/modelProviders/index.ts +3 -0
- package/src/store/image/slices/generationConfig/hooks.ts +6 -10
package/.vscode/settings.json
CHANGED
@@ -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
|
-
"**/
|
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,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
## [Version 1.113.0](https://github.com/lobehub/lobe-chat/compare/v1.112.5...v1.113.0)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-17**</sup>
|
8
|
+
|
9
|
+
#### ✨ Features
|
10
|
+
|
11
|
+
- **provider**: Add BFL provider support for image generation.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's improved
|
19
|
+
|
20
|
+
- **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))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.112.5](https://github.com/lobehub/lobe-chat/compare/v1.112.4...v1.112.5)
|
6
31
|
|
7
32
|
<sup>Released on **2025-08-17**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.113.0",
|
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",
|
@@ -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.
|
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 = [
|
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
|
+
];
|