@lobehub/chat 1.32.6 → 1.32.7

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.32.7](https://github.com/lobehub/lobe-chat/compare/v1.32.6...v1.32.7)
6
+
7
+ <sup>Released on **2024-11-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix tool message display.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix tool message display, closes [#4776](https://github.com/lobehub/lobe-chat/issues/4776) ([9d9b2a2](https://github.com/lobehub/lobe-chat/commit/9d9b2a2))
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.32.6](https://github.com/lobehub/lobe-chat/compare/v1.32.5...v1.32.6)
6
31
 
7
32
  <sup>Released on **2024-11-24**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.32.6",
3
+ "version": "1.32.7",
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",
@@ -57,8 +57,8 @@ const activeBaseChatsWithoutTool = (s: ChatStoreState) => {
57
57
  * 根据当前不同的状态,返回不同的消息列表
58
58
  */
59
59
  const mainDisplayChats = (s: ChatStoreState): ChatMessage[] => {
60
+ return activeBaseChatsWithoutTool(s);
60
61
  // 如果没有 activeThreadId,则返回所有的主消息
61
- return activeBaseChats(s);
62
62
  // const mains = activeBaseChats(s).filter((m) => !m.threadId);
63
63
  // if (!s.activeThreadId) return mains;
64
64
  //
@@ -72,9 +72,7 @@ const mainDisplayChats = (s: ChatStoreState): ChatMessage[] => {
72
72
  // return [...sliced, ...activeBaseChats(s).filter((m) => m.threadId === s.activeThreadId)];
73
73
  };
74
74
 
75
- const mainDisplayChatIDs = (s: ChatStoreState) => {
76
- return mainDisplayChats(s).map((s) => s.id);
77
- };
75
+ const mainDisplayChatIDs = (s: ChatStoreState) => mainDisplayChats(s).map((s) => s.id);
78
76
 
79
77
  const currentChatsWithHistoryConfig = (s: ChatStoreState): ChatMessage[] => {
80
78
  const chats = activeBaseChats(s);