@lobehub/chat 0.107.7 → 0.107.9
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,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.107.9](https://github.com/lobehub/lobe-chat/compare/v0.107.8...v0.107.9)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-11-30**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Switch session causing problem.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Switch session causing problem, closes [#535](https://github.com/lobehub/lobe-chat/issues/535) ([205bc42](https://github.com/lobehub/lobe-chat/commit/205bc42))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.107.8](https://github.com/lobehub/lobe-chat/compare/v0.107.7...v0.107.8)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2023-11-30**</sup>
|
|
33
|
+
|
|
34
|
+
#### 💄 Styles
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix chatitem gap.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Styles
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix chatitem gap ([772bb7c](https://github.com/lobehub/lobe-chat/commit/772bb7c))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.107.7](https://github.com/lobehub/lobe-chat/compare/v0.107.6...v0.107.7)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2023-11-30**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.107.
|
|
3
|
+
"version": "0.107.9",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|
|
@@ -15,9 +15,7 @@ import Lightbox from './Lightbox';
|
|
|
15
15
|
|
|
16
16
|
interface FileListProps {
|
|
17
17
|
alwaysShowClose?: boolean;
|
|
18
|
-
|
|
19
18
|
editable?: boolean;
|
|
20
|
-
|
|
21
19
|
items: string[];
|
|
22
20
|
}
|
|
23
21
|
|
|
@@ -33,12 +31,7 @@ const FileList = memo<FileListProps>(({ items, editable = true, alwaysShowClose
|
|
|
33
31
|
|
|
34
32
|
return (
|
|
35
33
|
<>
|
|
36
|
-
<Flexbox
|
|
37
|
-
align={'flex-end'}
|
|
38
|
-
// className={styles.container}
|
|
39
|
-
gap={8}
|
|
40
|
-
horizontal
|
|
41
|
-
>
|
|
34
|
+
<Flexbox align={'flex-end'} gap={8} horizontal>
|
|
42
35
|
{items.map((i, index) => (
|
|
43
36
|
<FileItem
|
|
44
37
|
alwaysShowClose={alwaysShowClose}
|
|
@@ -17,7 +17,7 @@ export const UserMessage = memo<
|
|
|
17
17
|
return (
|
|
18
18
|
<Flexbox gap={8} id={id}>
|
|
19
19
|
{editableContent}
|
|
20
|
-
{res.files && <FileList editable={false} items={res.files} />}
|
|
20
|
+
{res.files && res.files?.length > 0 && <FileList editable={false} items={res.files} />}
|
|
21
21
|
</Flexbox>
|
|
22
22
|
);
|
|
23
23
|
});
|
|
@@ -220,6 +220,10 @@ export const chatMessage: StateCreator<
|
|
|
220
220
|
}),
|
|
221
221
|
);
|
|
222
222
|
},
|
|
223
|
+
// default is 2000ms ,it makes the user's quick switch don't work correctly.
|
|
224
|
+
// Cause issue like this: https://github.com/lobehub/lobe-chat/issues/532
|
|
225
|
+
// we need to set it to 0.
|
|
226
|
+
dedupingInterval: 0,
|
|
223
227
|
},
|
|
224
228
|
),
|
|
225
229
|
refreshMessages: async () => {
|