@lobehub/chat 1.111.0 → 1.111.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.111.1](https://github.com/lobehub/lobe-chat/compare/v1.111.0...v1.111.1)
6
+
7
+ <sup>Released on **2025-08-08**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add descriptions for the FLUX.1 Krea and Qwen Image.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add descriptions for the FLUX.1 Krea and Qwen Image, closes [#8678](https://github.com/lobehub/lobe-chat/issues/8678) ([769fda0](https://github.com/lobehub/lobe-chat/commit/769fda0))
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
+
5
30
  ## [Version 1.111.0](https://github.com/lobehub/lobe-chat/compare/v1.110.7...v1.111.0)
6
31
 
7
32
  <sup>Released on **2025-08-08**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add descriptions for the FLUX.1 Krea and Qwen Image."
6
+ ]
7
+ },
8
+ "date": "2025-08-08",
9
+ "version": "1.111.1"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.111.0",
3
+ "version": "1.111.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",
@@ -5,14 +5,34 @@ export const fluxSchnellParamsSchema: ModelParamsSchema = {
5
5
  height: { default: 1024, max: 1536, min: 512, step: 1 },
6
6
  prompt: { default: '' },
7
7
  seed: { default: null },
8
- steps: { default: 4, max: 12, min: 1 },
8
+ steps: { default: 4, max: 12, min: 1, step: 1 },
9
9
  width: { default: 1024, max: 1536, min: 512, step: 1 },
10
10
  };
11
11
 
12
+ export const fluxKreaParamsSchema: ModelParamsSchema = {
13
+ cfg: { default: 7.5, max: 20, min: 0, step: 0.1 },
14
+ height: { default: 1248, max: 2048, min: 512, step: 1 },
15
+ prompt: { default: '' },
16
+ seed: { default: null },
17
+ steps: { default: 28, max: 50, min: 1, step: 1 },
18
+ width: { default: 832, max: 2048, min: 512, step: 1 },
19
+ };
20
+
21
+ export const qwenImageParamsSchema: ModelParamsSchema = {
22
+ cfg: { default: 2.5, max: 20, min: 0, step: 0.1 },
23
+ height: { default: 1328, max: 1536, min: 512, step: 1 },
24
+ prompt: { default: '' },
25
+ seed: { default: null },
26
+ steps: { default: 30, max: 50, min: 2, step: 1 },
27
+ width: { default: 1328, max: 1536, min: 512, step: 1 },
28
+ };
29
+
30
+
31
+
12
32
  const falImageModels: AIImageModelCard[] = [
13
33
  {
14
- description: 'Frontier image editing model.',
15
- displayName: 'FLUX.1 Kontext Dev',
34
+ description: '专注于图像编辑任务的FLUX.1模型,支持文本和图像输入。',
35
+ displayName: 'FLUX.1 Kontext [dev]',
16
36
  enabled: true,
17
37
  id: 'flux-kontext/dev',
18
38
  parameters: {
@@ -43,8 +63,7 @@ const falImageModels: AIImageModelCard[] = [
43
63
  type: 'image',
44
64
  },
45
65
  {
46
- description:
47
- 'FLUX.1 [schnell] 是一个拥有120亿参数的流式转换器模型,能够在1到4步内从文本生成高质量图像,适合个人和商业用途。',
66
+ description: 'FLUX.1 [schnell] 是一个具有120亿参数的图像生成模型,专注于快速生成高质量图像。',
48
67
  displayName: 'FLUX.1 Schnell',
49
68
  enabled: true,
50
69
  id: 'flux/schnell',
@@ -53,7 +72,16 @@ const falImageModels: AIImageModelCard[] = [
53
72
  type: 'image',
54
73
  },
55
74
  {
56
- description: 'Google 最高质量的图像生成模型',
75
+ description: 'Flux Krea [dev] 是一个有美学偏好的图像生成模型,目标是生成更加真实、自然的图像。',
76
+ displayName: 'FLUX.1 Krea [dev]',
77
+ enabled: true,
78
+ id: 'flux/krea',
79
+ parameters: fluxKreaParamsSchema,
80
+ releasedAt: '2025-07-31',
81
+ type: 'image',
82
+ },
83
+ {
84
+ description: 'Google 提供的高质量的图像生成模型',
57
85
  displayName: 'Imagen 4',
58
86
  enabled: true,
59
87
  id: 'imagen4/preview',
@@ -69,6 +97,15 @@ const falImageModels: AIImageModelCard[] = [
69
97
  releasedAt: '2025-05-21',
70
98
  type: 'image',
71
99
  },
100
+ {
101
+ description: 'Qwen团队带来的强大生图模型,具有令人印象深刻的中文文字生成能力和多样图片视觉风格。',
102
+ displayName: 'Qwen Image',
103
+ enabled: true,
104
+ id: 'qwen-image',
105
+ parameters: qwenImageParamsSchema,
106
+ releasedAt: '2025-08-04',
107
+ type: 'image',
108
+ },
72
109
  ];
73
110
 
74
111
  export const allModels = [...falImageModels];
@@ -35,11 +35,11 @@ export class LobeFalAI implements LobeRuntimeAI {
35
35
  ['imageUrl', 'image_url'],
36
36
  ]);
37
37
 
38
- const defaultInput = {
38
+ const defaultInput: Record<string, unknown> = {
39
39
  enable_safety_checker: false,
40
40
  num_images: 1,
41
41
  };
42
- const userInput = Object.fromEntries(
42
+ const userInput: Record<string, unknown> = Object.fromEntries(
43
43
  (Object.entries(params) as [keyof typeof params, any][]).map(([key, value]) => [
44
44
  paramsMap.get(key) ?? key,
45
45
  value,
@@ -55,6 +55,12 @@ export class LobeFalAI implements LobeRuntimeAI {
55
55
  delete userInput.height;
56
56
  }
57
57
 
58
+ const modelsAcceleratedByDefault = new Set<string>(['flux/krea']);
59
+ if (modelsAcceleratedByDefault.has(model)) {
60
+ defaultInput['acceleration'] = 'high';
61
+ log('Applied default acceleration=high for model: %s', model);
62
+ }
63
+
58
64
  const endpoint = `fal-ai/${model}`;
59
65
  log('Calling fal.subscribe with endpoint: %s and input: %O', endpoint, {
60
66
  ...defaultInput,