@lobehub/chat 1.120.3 β 1.120.4
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.120.4](https://github.com/lobehub/lobe-chat/compare/v1.120.3...v1.120.4)
|
6
|
+
|
7
|
+
<sup>Released on **2025-09-01**</sup>
|
8
|
+
|
9
|
+
#### π Styles
|
10
|
+
|
11
|
+
- **misc**: Adjust ControlsForm component to adapt to mobile phone display.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Adjust ControlsForm component to adapt to mobile phone display, closes [#9013](https://github.com/lobehub/lobe-chat/issues/9013) ([c6038c0](https://github.com/lobehub/lobe-chat/commit/c6038c0))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.120.3](https://github.com/lobehub/lobe-chat/compare/v1.120.2...v1.120.3)
|
6
31
|
|
7
32
|
<sup>Released on **2025-09-01**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.120.
|
3
|
+
"version": "1.120.4",
|
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",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Form } from '@lobehub/ui';
|
2
2
|
import type { FormItemProps } from '@lobehub/ui';
|
3
|
-
import { Form as AntdForm, Switch } from 'antd';
|
3
|
+
import { Form as AntdForm, Switch, Grid } from 'antd';
|
4
4
|
import isEqual from 'fast-deep-equal';
|
5
5
|
import Link from 'next/link';
|
6
6
|
import { memo } from 'react';
|
@@ -32,11 +32,21 @@ const ControlsForm = memo(() => {
|
|
32
32
|
|
33
33
|
const modelExtendParams = useAiInfraStore(aiModelSelectors.modelExtendParams(model, provider));
|
34
34
|
|
35
|
+
const screens = Grid.useBreakpoint();
|
36
|
+
const isNarrow = !screens.sm;
|
37
|
+
|
38
|
+
const descWide = { display: 'inline-block', width: 300 } as const;
|
39
|
+
const descNarrow = {
|
40
|
+
display: 'block',
|
41
|
+
maxWidth: '100%',
|
42
|
+
whiteSpace: 'normal',
|
43
|
+
} as const;
|
44
|
+
|
35
45
|
const items = [
|
36
46
|
{
|
37
47
|
children: <ContextCachingSwitch />,
|
38
48
|
desc: (
|
39
|
-
<span style={
|
49
|
+
<span style={isNarrow ? descNarrow : descWide}>
|
40
50
|
<Trans i18nKey={'extendParams.disableContextCaching.desc'} ns={'chat'}>
|
41
51
|
εζ‘ε―Ήθ―ηζζζ¬ζι«ε―ιδ½ 90%οΌεεΊιεΊ¦ζε 4 εοΌ
|
42
52
|
<Link
|
@@ -50,13 +60,14 @@ const ControlsForm = memo(() => {
|
|
50
60
|
</span>
|
51
61
|
),
|
52
62
|
label: t('extendParams.disableContextCaching.title'),
|
63
|
+
layout: isNarrow ? 'vertical' : 'horizontal',
|
53
64
|
minWidth: undefined,
|
54
65
|
name: 'disableContextCaching',
|
55
66
|
},
|
56
67
|
{
|
57
68
|
children: <Switch />,
|
58
69
|
desc: (
|
59
|
-
<span style={
|
70
|
+
<span style={isNarrow ? descNarrow : descWide}>
|
60
71
|
<Trans i18nKey={'extendParams.enableReasoning.desc'} ns={'chat'}>
|
61
72
|
εΊδΊ Claude Thinking ζΊεΆιεΆοΌ
|
62
73
|
<Link
|
@@ -72,7 +83,7 @@ const ControlsForm = memo(() => {
|
|
72
83
|
</span>
|
73
84
|
),
|
74
85
|
label: t('extendParams.enableReasoning.title'),
|
75
|
-
layout: 'horizontal',
|
86
|
+
layout: isNarrow ? 'vertical' : 'horizontal',
|
76
87
|
minWidth: undefined,
|
77
88
|
name: 'enableReasoning',
|
78
89
|
},
|
@@ -132,14 +143,16 @@ const ControlsForm = memo(() => {
|
|
132
143
|
},
|
133
144
|
{
|
134
145
|
children: <Switch />,
|
135
|
-
desc:
|
146
|
+
desc: isNarrow ? (
|
147
|
+
<span style={descNarrow}>{t('extendParams.urlContext.desc')}</span>
|
148
|
+
) : (
|
149
|
+
t('extendParams.urlContext.desc')
|
150
|
+
),
|
136
151
|
label: t('extendParams.urlContext.title'),
|
137
|
-
layout: 'horizontal',
|
152
|
+
layout: isNarrow ? 'vertical' : 'horizontal',
|
138
153
|
minWidth: undefined,
|
139
154
|
name: 'urlContext',
|
140
|
-
style: {
|
141
|
-
width: 445,
|
142
|
-
},
|
155
|
+
style: isNarrow ? undefined : { width: 445 },
|
143
156
|
tag: 'urlContext',
|
144
157
|
},
|
145
158
|
{
|