@lobehub/chat 0.107.8 → 0.107.10
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,48 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.107.10](https://github.com/lobehub/lobe-chat/compare/v0.107.9...v0.107.10)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-11-30**</sup>
|
|
8
|
+
|
|
9
|
+
<br/>
|
|
10
|
+
|
|
11
|
+
<details>
|
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
<div align="right">
|
|
17
|
+
|
|
18
|
+
[](#readme-top)
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
### [Version 0.107.9](https://github.com/lobehub/lobe-chat/compare/v0.107.8...v0.107.9)
|
|
23
|
+
|
|
24
|
+
<sup>Released on **2023-11-30**</sup>
|
|
25
|
+
|
|
26
|
+
#### 🐛 Bug Fixes
|
|
27
|
+
|
|
28
|
+
- **misc**: Switch session causing problem.
|
|
29
|
+
|
|
30
|
+
<br/>
|
|
31
|
+
|
|
32
|
+
<details>
|
|
33
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
34
|
+
|
|
35
|
+
#### What's fixed
|
|
36
|
+
|
|
37
|
+
- **misc**: Switch session causing problem, closes [#535](https://github.com/lobehub/lobe-chat/issues/535) ([205bc42](https://github.com/lobehub/lobe-chat/commit/205bc42))
|
|
38
|
+
|
|
39
|
+
</details>
|
|
40
|
+
|
|
41
|
+
<div align="right">
|
|
42
|
+
|
|
43
|
+
[](#readme-top)
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
5
47
|
### [Version 0.107.8](https://github.com/lobehub/lobe-chat/compare/v0.107.7...v0.107.8)
|
|
6
48
|
|
|
7
49
|
<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.10",
|
|
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",
|
|
@@ -21,10 +21,8 @@ const SessionItem = memo<SessionItemProps>(({ id }) => {
|
|
|
21
21
|
const [open, setOpen] = useState(false);
|
|
22
22
|
|
|
23
23
|
const [defaultModel] = useGlobalStore((s) => [settingsSelectors.defaultAgentConfig(s).model]);
|
|
24
|
-
const [active
|
|
25
|
-
|
|
26
|
-
!!s.chatLoadingId && id === s.activeId,
|
|
27
|
-
]);
|
|
24
|
+
const [active] = useSessionStore((s) => [s.activeId === id]);
|
|
25
|
+
const [loading] = useChatStore((s) => [!!s.chatLoadingId && id === s.activeId]);
|
|
28
26
|
|
|
29
27
|
const [pin, title, description, systemRole, avatar, avatarBackground, updateAt, model] =
|
|
30
28
|
useSessionStore((s) => {
|
|
@@ -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 () => {
|